Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 996d67745685131ab78e8d0b77d23028aa7e9e8e..2ba36d3956fedd18806f807e3fd5e644a1ce94c6 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -889,8 +889,8 @@ void* Parser::ParseSourceElements(ZoneList<Statement*>* processor, |
// Still processing directive prologue? |
if ((e_stat = stat->AsExpressionStatement()) != NULL && |
(literal = e_stat->expression()->AsLiteral()) != NULL && |
- literal->handle()->IsString()) { |
- Handle<String> directive = Handle<String>::cast(literal->handle()); |
+ literal->value()->IsString()) { |
+ Handle<String> directive = Handle<String>::cast(literal->value()); |
// Check "use strict" directive (ES5 14.1). |
if (top_scope_->is_classic_mode() && |
@@ -3067,10 +3067,10 @@ Expression* Parser::ParseBinaryExpression(int prec, bool accept_IN, bool* ok) { |
Expression* y = ParseBinaryExpression(prec1 + 1, accept_IN, CHECK_OK); |
// Compute some expressions involving only number literals. |
- if (x && x->AsLiteral() && x->AsLiteral()->handle()->IsNumber() && |
- y && y->AsLiteral() && y->AsLiteral()->handle()->IsNumber()) { |
- double x_val = x->AsLiteral()->handle()->Number(); |
- double y_val = y->AsLiteral()->handle()->Number(); |
+ if (x && x->AsLiteral() && x->AsLiteral()->value()->IsNumber() && |
+ y && y->AsLiteral() && y->AsLiteral()->value()->IsNumber()) { |
+ double x_val = x->AsLiteral()->value()->Number(); |
+ double y_val = y->AsLiteral()->value()->Number(); |
switch (op) { |
case Token::ADD: |
@@ -3169,7 +3169,7 @@ Expression* Parser::ParseUnaryExpression(bool* ok) { |
Expression* expression = ParseUnaryExpression(CHECK_OK); |
if (expression != NULL && (expression->AsLiteral() != NULL)) { |
- Handle<Object> literal = expression->AsLiteral()->handle(); |
+ Handle<Object> literal = expression->AsLiteral()->value(); |
if (op == Token::NOT) { |
// Convert the literal to a boolean condition and negate it. |
bool condition = literal->BooleanValue(); |
@@ -3783,7 +3783,7 @@ Handle<FixedArray> CompileTimeValue::GetElements(Handle<FixedArray> value) { |
Handle<Object> Parser::GetBoilerplateValue(Expression* expression) { |
if (expression->AsLiteral() != NULL) { |
- return expression->AsLiteral()->handle(); |
+ return expression->AsLiteral()->value(); |
} |
if (CompileTimeValue::IsCompileTimeValue(expression)) { |
return CompileTimeValue::GetValue(expression); |
@@ -3896,7 +3896,7 @@ void Parser::BuildObjectLiteralConstantProperties( |
// Add CONSTANT and COMPUTED properties to boilerplate. Use undefined |
// value for COMPUTED properties, the real value is filled in at |
// runtime. The enumeration order is maintained. |
- Handle<Object> key = property->key()->handle(); |
+ Handle<Object> key = property->key()->value(); |
Handle<Object> value = GetBoilerplateValue(property->value()); |
// Ensure objects that may, at any point in time, contain fields with double |