This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 4f2d29eaa915925d91b022fe6774047ef2259345 | |
Author: Shu-yu Guo <[email protected]> | |
Date: Tue Oct 7 14:25:57 2014 -0700 | |
synthesizables | |
diff --git a/js/src/vm/Interpreter.cpp b/js/src/vm/Interpreter.cpp | |
index c6126fe..a615aaa 100644 | |
--- a/js/src/vm/Interpreter.cpp | |
+++ b/js/src/vm/Interpreter.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var g = newGlobal(); | |
var dbg = new Debugger(g); | |
//g.debuggeeGlobal = this; | |
//g.eval("(" + function () { dbg = new Debugger(debuggeeGlobal); } + ")();"); | |
g.eval("(" + function() { | |
for (var i4 = 0; i4 < 16; i4++) { | |
try { | |
var pattern = eval("/" + xx + "/"); | |
} catch (e) { | |
$ERROR('#' + uu + ' '); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 0070aa00753d90eacaa551dac9c66066808f7c7a Mon Sep 17 00:00:00 2001 | |
From: Shu-yu Guo <[email protected]> | |
Date: Wed, 23 Apr 2014 17:26:39 -0700 | |
Subject: [PATCH] Clear TypeCompartment tables. | |
--- | |
js/src/jscompartment.cpp | 1 + | |
js/src/jsinfer.cpp | 11 +++++++++++ | |
js/src/jsinfer.h | 1 + | |
3 files changed, 13 insertions(+) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/src/jit/BaselineBailouts.cpp b/js/src/jit/BaselineBailouts.cpp | |
index 7624ea1..325eb38 100644 | |
--- a/js/src/jit/BaselineBailouts.cpp | |
+++ b/js/src/jit/BaselineBailouts.cpp | |
@@ -1563,10 +1563,7 @@ CopyFromRematerializedFrame(JSContext *cx, JitActivation *act, uint8_t *fp, size | |
" Copied from rematerialized frame at (%p,%u)", | |
fp, inlineDepth); | |
+ if (cx->compartment()->debugMode()) | |
+ return Debugger::handleIonBailout(cx, rematFrame, frame); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shu@pikashu ~/moz/inbound/js/src/jit-test | |
% cat lib/jitopts.js | |
function withJitOptions(opts, fn) { | |
var oldOpts = getJitCompilerOptions(); | |
for (var k in opts) | |
setJitCompilerOption(k, opts[k]); | |
fn(); | |
for (var k in oldOpts) | |
setJitCompilerOption(k, oldOpts[k]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var g = newGlobal(); | |
var dbg = new Debugger; | |
g.eval("function f(d) { g(d); }"); | |
g.eval("function g(d) { h(d); }"); | |
g.eval("function h(d) { while (d) { } return d; }"); | |
timeout(1, function () { | |
dbg.addDebuggee(g); | |
var frame = dbg.getNewestFrame(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre> | |
<?php | |
// How many movies to ask RT at once. | |
define("PAGE_LIMIT", 50); | |
// The minimum critic score to be considered fresh. | |
define("FRESH_THRESHOLD", -1); | |
// The maximum number of days in theaters to be considered young. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
pattern='src\/(Debug|Opt|yarr|build|jsapi-tests|gdb|ctypes).*\/' | |
listfile=/tmp/files | |
find public -type f -print > $listfile | |
find src -name "*.h" -print | grep -v -P $pattern >> $listfile | |
find src -name "*.cpp" -print | grep -v -P $pattern >> $listfile | |
ctags -e --fields=+iaS --language-force=C++ $(cat $listfile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/src/vm/ForkJoin.cpp b/js/src/vm/ForkJoin.cpp | |
index 2f9a1a2..e80620a 100644 | |
--- a/js/src/vm/ForkJoin.cpp | |
+++ b/js/src/vm/ForkJoin.cpp | |
@@ -1127,6 +1127,21 @@ js::ParallelDo::invalidateBailedOutScripts() | |
return true; | |
} | |
+struct AutoSetEagerBaseline | |
+{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/src/ion/x86/Assembler-x86.h b/js/src/ion/x86/Assembler-x86.h | |
index be1ca9f..986a5d6 100644 | |
--- a/js/src/ion/x86/Assembler-x86.h | |
+++ b/js/src/ion/x86/Assembler-x86.h | |
@@ -257,6 +257,10 @@ class Assembler : public AssemblerX86Shared | |
push(Imm32(word.value)); | |
return masm.currentOffset(); | |
} | |
+ CodeOffsetLabel moveWithPatch(const ImmWord &word, const Register &dest) { | |
+ movl(Imm32(word.value), dest); |