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

Side by Side Diff: src/compiler/typer.cc

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: Fix ia32 port Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/typer.h" 5 #include "src/compiler/typer.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 8
9 #include "src/base/flags.h" 9 #include "src/base/flags.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 Type* Typer::Visitor::TypeJSStoreContext(Node* node) { 1259 Type* Typer::Visitor::TypeJSStoreContext(Node* node) {
1260 UNREACHABLE(); 1260 UNREACHABLE();
1261 return nullptr; 1261 return nullptr;
1262 } 1262 }
1263 1263
1264 1264
1265 Type* Typer::Visitor::TypeJSCreateFunctionContext(Node* node) { 1265 Type* Typer::Visitor::TypeJSCreateFunctionContext(Node* node) {
1266 return Type::OtherInternal(); 1266 return Type::OtherInternal();
1267 } 1267 }
1268 1268
1269 Type* Typer::Visitor::TypeJSCreateEvalContext(Node* node) {
1270 return Type::OtherInternal();
1271 }
1272
1269 Type* Typer::Visitor::TypeJSCreateCatchContext(Node* node) { 1273 Type* Typer::Visitor::TypeJSCreateCatchContext(Node* node) {
1270 return Type::OtherInternal(); 1274 return Type::OtherInternal();
1271 } 1275 }
1272 1276
1273 Type* Typer::Visitor::TypeJSCreateWithContext(Node* node) { 1277 Type* Typer::Visitor::TypeJSCreateWithContext(Node* node) {
1274 return Type::OtherInternal(); 1278 return Type::OtherInternal();
1275 } 1279 }
1276 1280
1277 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) { 1281 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) {
1278 return Type::OtherInternal(); 1282 return Type::OtherInternal();
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1739 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { 1743 Type* Typer::Visitor::TypeConstant(Handle<Object> value) {
1740 if (Type::IsInteger(*value)) { 1744 if (Type::IsInteger(*value)) {
1741 return Type::Range(value->Number(), value->Number(), zone()); 1745 return Type::Range(value->Number(), value->Number(), zone());
1742 } 1746 }
1743 return Type::NewConstant(value, zone()); 1747 return Type::NewConstant(value, zone());
1744 } 1748 }
1745 1749
1746 } // namespace compiler 1750 } // namespace compiler
1747 } // namespace internal 1751 } // namespace internal
1748 } // namespace v8 1752 } // namespace v8
OLDNEW
« src/ast/scopes.cc ('K') | « src/compiler/opcodes.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698