This file contains hidden or 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/CodeGenerator.cpp b/js/src/ion/CodeGenerator.cpp | |
--- a/js/src/ion/CodeGenerator.cpp | |
+++ b/js/src/ion/CodeGenerator.cpp | |
@@ -133,16 +133,24 @@ CodeGenerator::visitValueToDouble(LValue | |
bool | |
CodeGenerator::visitInt32ToDouble(LInt32ToDouble *lir) | |
{ | |
masm.convertInt32ToDouble(ToRegister(lir->input()), ToFloatRegister(lir->output())); | |
return true; |
This file contains hidden or 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
function test (array) { | |
var i = 0; | |
for (var a = 0; a < 10; a++) { | |
for (var x in array) { | |
i = i + array[x]; | |
} | |
} | |
} | |
var a = new Array(1000); |
This file contains hidden or 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
import hgapi | |
from bugzilla.agents import BMOAgent | |
import re | |
from optparse import OptionParser | |
# Use this like: | |
# python hgbzlog.py -c "JavaScript Engine" -r /home/tom/inbound -s 357da346ceb7 | |
parser = OptionParser() | |
parser.add_option('-c', '--component', help='Limit bugs to certain component.') |
This file contains hidden or 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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="test3.php"> | |
</head> | |
<body> | |
<span>This is a test</span> | |
</body> | |
</html> |
This file contains hidden or 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
/* See: http://0x10c.com/doc/dcpu-16.txt */ | |
function hex(n) { | |
return '0x' + n.toString(16); | |
} | |
function disassemble (code) { | |
var PC = 0; | |
var operand = function (bits) { |
This file contains hidden or 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
class Token: | |
ASSIGN = 'assign' | |
NAME = 'name' | |
NUMBER = 'number' | |
PLUS = 'plus' | |
MINUS = 'minus' | |
LPARENS = 'lparens' | |
RPARENS = 'rparens' | |
DOUBLEDOT = 'doubledot' |
This file contains hidden or 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
/* insertion sort */ | |
function insertion_sort(a) { | |
for (var i = 1; i < a.length; i++) { | |
var key = a[i]; | |
var j = i - 1; | |
while (j >= 0 && a[j] > key) { | |
a[j + 1] = a[j]; | |
j = j - 1; |
This file contains hidden or 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
; JavaScript Code : "!a" | |
movabsq $0xfff9800000000000, %r11 ; type tag of boolean (SpiderMonkey uses a trait of NaN-boxing) | |
cmpq %r11, %r9 ; compare with type tag of a | |
jne ((165)) ; if not equal jump to stub | |
xorl 1, %r15d ; xor value of a with 1, true is value 1 so 1^1 = 0, false is 0 so 1^0 = 1 | |
; JavaScript Code: "a - 1" | |
movabsq $0xfff8800000000000, %r11 ; type tag of int | |
cmpq %r11, %r15 | |
jne ((73)) ; jump if not int |
This file contains hidden or 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
so well | |
var f = function () {}; | |
var bound = f.bind({}); | |
(new bound) instanceof bound; | |
V = new bound; | |
bound[[HasInstance]](V); |
This file contains hidden or 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
""" Patch utility to apply unified diffs | |
Brute-force line-by-line non-recursive parsing | |
Copyright (c) 2008-2011 anatoly techtonik | |
Available under the terms of MIT license | |
Project home: http://code.google.com/p/python-patch/ | |