| OLD | NEW | 
|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "src/v8.h" | 5 #include "src/v8.h" | 
| 6 | 6 | 
| 7 #include "src/api.h" | 7 #include "src/api.h" | 
| 8 #include "src/ast.h" | 8 #include "src/ast.h" | 
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" | 
| 10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" | 
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 641 | 641 | 
| 642 Expression* ParserTraits::SuperReference( | 642 Expression* ParserTraits::SuperReference( | 
| 643     Scope* scope, AstNodeFactory<AstConstructionVisitor>* factory, int pos) { | 643     Scope* scope, AstNodeFactory<AstConstructionVisitor>* factory, int pos) { | 
| 644   return factory->NewSuperReference( | 644   return factory->NewSuperReference( | 
| 645       ThisExpression(scope, factory, pos)->AsVariableProxy(), | 645       ThisExpression(scope, factory, pos)->AsVariableProxy(), | 
| 646       pos); | 646       pos); | 
| 647 } | 647 } | 
| 648 | 648 | 
| 649 Expression* ParserTraits::ClassExpression( | 649 Expression* ParserTraits::ClassExpression( | 
| 650     const AstRawString* name, Expression* extends, Expression* constructor, | 650     const AstRawString* name, Expression* extends, Expression* constructor, | 
| 651     ZoneList<ObjectLiteral::Property*>* properties, int pos, | 651     ZoneList<ObjectLiteral::Property*>* properties, int start_position, | 
| 652     AstNodeFactory<AstConstructionVisitor>* factory) { | 652     int end_position, AstNodeFactory<AstConstructionVisitor>* factory) { | 
| 653   return factory->NewClassLiteral(name, extends, constructor, properties, pos); | 653   return factory->NewClassLiteral(name, extends, constructor, properties, | 
|  | 654                                   start_position, end_position); | 
| 654 } | 655 } | 
| 655 | 656 | 
| 656 Literal* ParserTraits::ExpressionFromLiteral( | 657 Literal* ParserTraits::ExpressionFromLiteral( | 
| 657     Token::Value token, int pos, | 658     Token::Value token, int pos, | 
| 658     Scanner* scanner, | 659     Scanner* scanner, | 
| 659     AstNodeFactory<AstConstructionVisitor>* factory) { | 660     AstNodeFactory<AstConstructionVisitor>* factory) { | 
| 660   switch (token) { | 661   switch (token) { | 
| 661     case Token::NULL_LITERAL: | 662     case Token::NULL_LITERAL: | 
| 662       return factory->NewNullLiteral(pos); | 663       return factory->NewNullLiteral(pos); | 
| 663     case Token::TRUE_LITERAL: | 664     case Token::TRUE_LITERAL: | 
| (...skipping 4282 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4946 | 4947 | 
| 4947   // We cannot internalize on a background thread; a foreground task will take | 4948   // We cannot internalize on a background thread; a foreground task will take | 
| 4948   // care of calling Parser::Internalize just before compilation. | 4949   // care of calling Parser::Internalize just before compilation. | 
| 4949 | 4950 | 
| 4950   if (compile_options() == ScriptCompiler::kProduceParserCache) { | 4951   if (compile_options() == ScriptCompiler::kProduceParserCache) { | 
| 4951     if (result != NULL) *info_->cached_data() = recorder.GetScriptData(); | 4952     if (result != NULL) *info_->cached_data() = recorder.GetScriptData(); | 
| 4952     log_ = NULL; | 4953     log_ = NULL; | 
| 4953   } | 4954   } | 
| 4954 } | 4955 } | 
| 4955 } }  // namespace v8::internal | 4956 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|