diff options
author | Ben Murdoch <benm@google.com> | 2012-04-11 18:30:58 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2012-04-11 18:39:07 +0100 |
commit | 85b71799222b55eb5dd74ea26efe0c64ab655c8c (patch) | |
tree | 0d0fa6be365df4b76fe2985458b3a9b9afd80988 /src/json-parser.h | |
parent | 5d4cdbf7a67d3662fa0bee4efdb7edd8daec9b0b (diff) | |
download | android_external_v8-85b71799222b55eb5dd74ea26efe0c64ab655c8c.tar.gz android_external_v8-85b71799222b55eb5dd74ea26efe0c64ab655c8c.tar.bz2 android_external_v8-85b71799222b55eb5dd74ea26efe0c64ab655c8c.zip |
Roll V8 back to 3.6
Roll back to V8 3.6 to fix x86 build, we don't have ucontext.h.
This reverts commits:
5d4cdbf7a67d3662fa0bee4efdb7edd8daec9b0b
c7cc028aaeedbbfa11c11d0b7b243b3d9e837ed9
592a9fc1d8ea420377a2e7efd0600e20b058be2b
Bug: 5688872
Change-Id: Ic961bb5e65b778e98bbfb71cce71d99fa949e995
Diffstat (limited to 'src/json-parser.h')
-rw-r--r-- | src/json-parser.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/json-parser.h b/src/json-parser.h index d22cd0da..68eab65f 100644 --- a/src/json-parser.h +++ b/src/json-parser.h @@ -130,7 +130,7 @@ class JsonParser BASE_EMBEDDED { // An object literal is a squiggly-braced and comma separated sequence // (possibly empty) of key/value pairs, where the key is a JSON string // literal, the value is a JSON value, and the two are separated by a colon. - // A JSON array doesn't allow numbers and identifiers as keys, like a + // A JSON array dosn't allow numbers and identifiers as keys, like a // JavaScript array. Handle<Object> ParseJsonObject(); @@ -165,7 +165,7 @@ class JsonParser BASE_EMBEDDED { template <bool seq_ascii> Handle<Object> JsonParser<seq_ascii>::ParseJson(Handle<String> source) { - isolate_ = source->map()->GetHeap()->isolate(); + isolate_ = source->map()->isolate(); FlattenString(source); source_ = source; source_length_ = source_->length(); @@ -177,7 +177,7 @@ Handle<Object> JsonParser<seq_ascii>::ParseJson(Handle<String> source) { // Set initial position right before the string. position_ = -1; - // Advance to the first character (possibly EOS) + // Advance to the first character (posibly EOS) AdvanceSkipWhitespace(); Handle<Object> result = ParseJsonValue(); if (result.is_null() || c0_ != kEndOfString) { @@ -303,12 +303,11 @@ Handle<Object> JsonParser<seq_ascii>::ParseJsonObject() { uint32_t index; if (key->AsArrayIndex(&index)) { - JSObject::SetOwnElement(json_object, index, value, kNonStrictMode); + SetOwnElement(json_object, index, value, kNonStrictMode); } else if (key->Equals(isolate()->heap()->Proto_symbol())) { SetPrototype(json_object, value); } else { - JSObject::SetLocalPropertyIgnoreAttributes( - json_object, key, value, NONE); + SetLocalPropertyIgnoreAttributes(json_object, key, value, NONE); } } while (MatchSkipWhiteSpace(',')); if (c0_ != '}') { |