Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Side by Side Diff: src/ast.cc

Issue 480543002: Parse 'super' keyword. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch for landing (minor fix for tests in release mode) Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ast.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/ast.h" 5 #include "src/ast.h"
6 6
7 #include <cmath> // For isfinite. 7 #include <cmath> // For isfinite.
8 #include "src/builtins.h" 8 #include "src/builtins.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/contexts.h" 10 #include "src/contexts.h"
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 DONT_OPTIMIZE_NODE(ExportDeclaration) 1090 DONT_OPTIMIZE_NODE(ExportDeclaration)
1091 DONT_OPTIMIZE_NODE(ModuleVariable) 1091 DONT_OPTIMIZE_NODE(ModuleVariable)
1092 DONT_OPTIMIZE_NODE(ModulePath) 1092 DONT_OPTIMIZE_NODE(ModulePath)
1093 DONT_OPTIMIZE_NODE(ModuleUrl) 1093 DONT_OPTIMIZE_NODE(ModuleUrl)
1094 DONT_OPTIMIZE_NODE(ModuleStatement) 1094 DONT_OPTIMIZE_NODE(ModuleStatement)
1095 DONT_OPTIMIZE_NODE(WithStatement) 1095 DONT_OPTIMIZE_NODE(WithStatement)
1096 DONT_OPTIMIZE_NODE(TryCatchStatement) 1096 DONT_OPTIMIZE_NODE(TryCatchStatement)
1097 DONT_OPTIMIZE_NODE(TryFinallyStatement) 1097 DONT_OPTIMIZE_NODE(TryFinallyStatement)
1098 DONT_OPTIMIZE_NODE(DebuggerStatement) 1098 DONT_OPTIMIZE_NODE(DebuggerStatement)
1099 DONT_OPTIMIZE_NODE(NativeFunctionLiteral) 1099 DONT_OPTIMIZE_NODE(NativeFunctionLiteral)
1100 DONT_OPTIMIZE_NODE(SuperReference)
1100 1101
1101 DONT_OPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(Yield) 1102 DONT_OPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(Yield)
1102 1103
1103 DONT_SELFOPTIMIZE_NODE(DoWhileStatement) 1104 DONT_SELFOPTIMIZE_NODE(DoWhileStatement)
1104 DONT_SELFOPTIMIZE_NODE(WhileStatement) 1105 DONT_SELFOPTIMIZE_NODE(WhileStatement)
1105 DONT_SELFOPTIMIZE_NODE(ForStatement) 1106 DONT_SELFOPTIMIZE_NODE(ForStatement)
1106 DONT_SELFOPTIMIZE_NODE(ForOfStatement) 1107 DONT_SELFOPTIMIZE_NODE(ForOfStatement)
1107 1108
1108 DONT_SELFOPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(ForInStatement) 1109 DONT_SELFOPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(ForInStatement)
1109 1110
(...skipping 26 matching lines...) Expand all
1136 SNPrintF(buffer, "%d", Smi::cast(*value())->value()); 1137 SNPrintF(buffer, "%d", Smi::cast(*value())->value());
1137 str = arr; 1138 str = arr;
1138 } else { 1139 } else {
1139 str = DoubleToCString(value()->Number(), buffer); 1140 str = DoubleToCString(value()->Number(), buffer);
1140 } 1141 }
1141 return isolate_->factory()->NewStringFromAsciiChecked(str); 1142 return isolate_->factory()->NewStringFromAsciiChecked(str);
1142 } 1143 }
1143 1144
1144 1145
1145 } } // namespace v8::internal 1146 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698