Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Upgrade V8 to 3.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Sep 8, 2011
1 parent 526c54c commit 0bca544
Show file tree
Hide file tree
Showing 213 changed files with 5,390 additions and 2,908 deletions.
43 changes: 43 additions & 0 deletions deps/v8/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
2011-09-07: Version 3.6.1

Fixed a bug in abrupt exit from with or catch inside finally.

Fixed possible crash in FixedDoubleArray::Initialize() (Chromium
issue 95113).

Fixed a bug in Page::GetRegionMaskForSpan (Chromium issue 94425).

Fixed a few clang warnings (which -Werror treated as errors).

Performance improvements on all platforms.


2011-09-05: Version 3.6.0

Fixed a bug when optimizing named function expression (issue 1647).

Fixed a bug when optimizing f.call.apply (issue 1650).

Made arguments and caller always be null on native functions
(issues 1548 and 1643).

Fixed issue 1648 (cross-compiling x64 targeting ia32).

Fixed issue 371 (d8 printing of strings containing \0).

Fixed order of evaluation in arguments to parseInt (issue 1649).

Fixed a problem with large heap snapshots in Chrome DevTools
(issue 1658, chromium issue 89268).

Upped default maximum heap size from 512M to 700M.


2011-08-31: Version 3.5.10

Added dependency of v8_base on WinSocket2 Windows library in
the GYP-build.

Various bugfixes.


2011-08-29: Version 3.5.9

Made FromPropertyDescriptor not trigger inherited setters.
Expand Down
5 changes: 3 additions & 2 deletions deps/v8/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ CHECKS = $(addsuffix .check,$(BUILDS))
# File where previously used GYPFLAGS are stored.
ENVFILE = $(OUTDIR)/environment

.PHONY: all clean $(ENVFILE).new \
$(ARCHES) $(MODES) $(BUILDS) $(addsuffix .clean,$(ARCHES))
.PHONY: all check clean $(ENVFILE).new \
$(ARCHES) $(MODES) $(BUILDS) $(CHECKS) $(addsuffix .clean,$(ARCHES)) \
$(addsuffix .check,$(MODES)) $(addsuffix .check,$(ARCHES))

# Target definitions. "all" is the default.
all: $(MODES)
Expand Down
2 changes: 1 addition & 1 deletion deps/v8/benchmarks/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ function rng_seed_int(x) {

// Mix in the current time (w/milliseconds) into the pool
function rng_seed_time() {
// Use pre-computed date to avoid making the benchmark
// Use pre-computed date to avoid making the benchmark
// results dependent on the current date.
rng_seed_int(1122926989487);
}
Expand Down
50 changes: 25 additions & 25 deletions deps/v8/benchmarks/earley-boyer.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function sc_rempropBang(sym, key) {
/*** META ((export #t)) */
function sc_any2String(o) {
return jsstring2string(sc_toDisplayString(o));
}
}

/*** META ((export #t)
(peephole (infix 2 2 "==="))
Expand Down Expand Up @@ -923,7 +923,7 @@ function sc_dualAppendBang(l1, l2) {
tmp.cdr = l2;
return l1;
}

/*** META ((export #t)) */
function sc_appendBang() {
var res = null;
Expand Down Expand Up @@ -1163,7 +1163,7 @@ sc_Char.readable2char = {
"us": "\037",
"sp": "\040",
"del": "\177"};

sc_Char.prototype.toString = function() {
return this.val;
};
Expand Down Expand Up @@ -1533,7 +1533,7 @@ function sc_mapBang(proc, l1) {
}
return l1_orig;
}

/*** META ((export #t)) */
function sc_forEach(proc, l1) {
if (l1 === undefined)
Expand Down Expand Up @@ -1871,7 +1871,7 @@ function sc_jsNew(c) {
evalStr += ", arguments[" + i + "]";
evalStr +=")";
return eval(evalStr);
}
}

// ======================== RegExp ====================
/*** META ((export #t)) */
Expand All @@ -1883,9 +1883,9 @@ function sc_pregexp(re) {
function sc_pregexpMatch(re, s) {
var reg = (re instanceof RegExp) ? re : sc_pregexp(re);
var tmp = reg.exec(sc_string2jsstring(s));

if (tmp == null) return false;

var res = null;
for (var i = tmp.length-1; i >= 0; i--) {
if (tmp[i] !== null) {
Expand All @@ -1896,7 +1896,7 @@ function sc_pregexpMatch(re, s) {
}
return res;
}

/*** META ((export #t)) */
function sc_pregexpReplace(re, s1, s2) {
var reg;
Expand All @@ -1914,7 +1914,7 @@ function sc_pregexpReplace(re, s1, s2) {

return jss1.replace(reg, jss2);
}

/*** META ((export pregexp-replace*)) */
function sc_pregexpReplaceAll(re, s1, s2) {
var reg;
Expand Down Expand Up @@ -1945,7 +1945,7 @@ function sc_pregexpSplit(re, s) {

return sc_vector2list(tmp);
}


/* =========================================================================== */
/* Other library stuff */
Expand Down Expand Up @@ -2136,7 +2136,7 @@ sc_ErrorInputPort.prototype.getNextChar = function() {
sc_ErrorInputPort.prototype.isCharReady = function() {
return false;
};


/* .............. String port ..........................*/

Expand Down Expand Up @@ -2200,7 +2200,7 @@ sc_Tokenizer.prototype.readToken = function() {
};
sc_Tokenizer.prototype.nextToken = function() {
var port = this.port;

function isNumberChar(c) {
return (c >= "0" && c <= "9");
};
Expand Down Expand Up @@ -2280,7 +2280,7 @@ sc_Tokenizer.prototype.nextToken = function() {
else
return new sc_Token(12/*NUMBER*/, res - 0);
};

function skipWhitespaceAndComments() {
var done = false;
while (!done) {
Expand All @@ -2299,7 +2299,7 @@ sc_Tokenizer.prototype.nextToken = function() {
}
}
};

function readDot() {
if (isWhitespace(port.peekChar()))
return new sc_Token(10/*DOT*/);
Expand Down Expand Up @@ -2429,7 +2429,7 @@ sc_Reader.prototype.read = function() {

while (true) {
var token = tokenizer.peekToken();

switch (token.type) {
case 2/*CLOSE_PAR*/:
case 4/*CLOSE_BRACE*/:
Expand Down Expand Up @@ -2491,15 +2491,15 @@ sc_Reader.prototype.read = function() {
else
throw "bad reference: " + nb;
};

var tokenizer = this.tokenizer;

var token = tokenizer.readToken();

// handle error
if (token.type === 13/*ERROR*/)
throw token.val;

switch (token.type) {
case 1/*OPEN_PAR*/:
case 3/*OPEN_BRACE*/:
Expand Down Expand Up @@ -2550,7 +2550,7 @@ function sc_peekChar(port) {
port = SC_DEFAULT_IN; // THREAD: shared var...
var t = port.peekChar();
return t === SC_EOF_OBJECT? t: new sc_Char(t);
}
}
/*** META ((export #t)
(type bool))
*/
Expand Down Expand Up @@ -2722,7 +2722,7 @@ sc_StringOutputPort.prototype.close = function() {
function sc_getOutputString(sp) {
return sc_jsstring2string(sp.res);
}


function sc_ErrorOutputPort() {
}
Expand Down Expand Up @@ -2852,7 +2852,7 @@ function sc_newline(p) {
p = SC_DEFAULT_OUT;
p.appendJSString("\n");
}

/* ------------------ write-char ---------------------------------------------------*/

/*** META ((export #t)) */
Expand Down Expand Up @@ -2927,7 +2927,7 @@ sc_Pair.prototype.sc_toWriteCircleString = function(symb, inList) {
}

var res = "";

if (this[symb] !== undefined) { // implies > 0
this[symb + "use"] = true;
if (inList)
Expand All @@ -2939,10 +2939,10 @@ sc_Pair.prototype.sc_toWriteCircleString = function(symb, inList) {

if (!inList)
res += "(";

// print car
res += sc_genToWriteCircleString(this.car, symb);

if (sc_isPair(this.cdr)) {
res += " " + this.cdr.sc_toWriteCircleString(symb, true);
} else if (this.cdr !== null) {
Expand Down Expand Up @@ -3072,7 +3072,7 @@ function sc_format(s, args) {
p.appendJSString(arguments[j].toString(2));
i += 2; j++;
break;

case 37:
case 110:
// %, n
Expand Down Expand Up @@ -3186,7 +3186,7 @@ function sc_isEqual(o1, o2) {
function sc_number2symbol(x, radix) {
return sc_SYMBOL_PREFIX + sc_number2jsstring(x, radix);
}

/*** META ((export number->string integer->string)) */
var sc_number2string = sc_number2jsstring;

Expand Down
6 changes: 3 additions & 3 deletions deps/v8/benchmarks/regexp.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// the popularity of the pages where it occurs and the number of times
// it is executed while loading each page. Furthermore the literal
// letters in the data are encoded using ROT13 in a way that does not
// affect how the regexps match their input. Finally the strings are
// affect how the regexps match their input. Finally the strings are
// scrambled to exercise the regexp engine on different input strings.


Expand All @@ -47,7 +47,7 @@ function RegExpSetup() {
regExpBenchmark = new RegExpBenchmark();
RegExpRun(); // run once to get system initialized
}

function RegExpRun() {
regExpBenchmark.run();
}
Expand Down Expand Up @@ -1759,6 +1759,6 @@ function RegExpBenchmark() {
runBlock11();
}
}

this.run = run;
}
10 changes: 2 additions & 8 deletions deps/v8/build/all.gyp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Copyright 2011 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

Expand All @@ -11,13 +11,7 @@
'../preparser/preparser.gyp:*',
'../samples/samples.gyp:*',
'../src/d8.gyp:d8',
],
'conditions': [
[ 'component!="shared_library"', {
'dependencies': [
'../test/cctest/cctest.gyp:*',
],
}]
'../test/cctest/cctest.gyp:*',
],
}
]
Expand Down
10 changes: 9 additions & 1 deletion deps/v8/build/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@
},
},
}],
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
'conditions': [
[ 'target_arch=="ia32"', {
'cflags': [ '-m32' ],
'ldflags': [ '-m32' ],
}],
],
}],
],
'configurations': {
'Debug': {
Expand Down Expand Up @@ -207,7 +215,7 @@
'cflags': [ '-I/usr/local/include' ],
}],
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
'cflags': [ '-Wall', '-W', '-Wno-unused-parameter',
'cflags': [ '-Wall', '-Werror', '-W', '-Wno-unused-parameter',
'-Wnon-virtual-dtor' ],
}],
],
Expand Down
7 changes: 2 additions & 5 deletions deps/v8/build/standalone.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,11 @@
'conditions': [
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
'target_defaults': {
'cflags': [ '-Wall', '-W', '-Wno-unused-parameter',
'cflags': [ '-Wall', '-Werror', '-W', '-Wno-unused-parameter',
'-Wnon-virtual-dtor', '-pthread', '-fno-rtti',
'-fno-exceptions', '-pedantic' ],
'ldflags': [ '-pthread', ],
'conditions': [
[ 'target_arch=="ia32"', {
'cflags': [ '-m32' ],
'ldflags': [ '-m32' ],
}],
[ 'OS=="linux"', {
'cflags': [ '-ansi' ],
}],
Expand Down Expand Up @@ -172,6 +168,7 @@
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror
'GCC_VERSION': '4.2',
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
'MACOSX_DEPLOYMENT_TARGET': '10.4', # -mmacosx-version-min=10.4
Expand Down
4 changes: 2 additions & 2 deletions deps/v8/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ class Object : public Value {
V8EXPORT bool IsCallable();

/**
* Call an Object as a function if a callback is set by the
* Call an Object as a function if a callback is set by the
* ObjectTemplate::SetCallAsFunctionHandler method.
*/
V8EXPORT Local<Value> CallAsFunction(Handle<Object> recv,
Expand Down Expand Up @@ -3562,7 +3562,7 @@ class V8EXPORT Context {
* // V8 Now no longer locked.
* \endcode
*
*
*
*/
class V8EXPORT Unlocker {
public:
Expand Down
Loading

0 comments on commit 0bca544

Please sign in to comment.