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

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

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: Crankshaft backends and scope deserialization Created 4 years, 2 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
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 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 Type* Typer::Visitor::TypeJSStoreContext(Node* node) { 1229 Type* Typer::Visitor::TypeJSStoreContext(Node* node) {
1230 UNREACHABLE(); 1230 UNREACHABLE();
1231 return nullptr; 1231 return nullptr;
1232 } 1232 }
1233 1233
1234 1234
1235 Type* Typer::Visitor::TypeJSCreateFunctionContext(Node* node) { 1235 Type* Typer::Visitor::TypeJSCreateFunctionContext(Node* node) {
1236 return Type::OtherInternal(); 1236 return Type::OtherInternal();
1237 } 1237 }
1238 1238
1239 Type* Typer::Visitor::TypeJSCreateEvalContext(Node* node) {
1240 return Type::OtherInternal();
1241 }
1242
1239 Type* Typer::Visitor::TypeJSCreateCatchContext(Node* node) { 1243 Type* Typer::Visitor::TypeJSCreateCatchContext(Node* node) {
1240 return Type::OtherInternal(); 1244 return Type::OtherInternal();
1241 } 1245 }
1242 1246
1243 Type* Typer::Visitor::TypeJSCreateWithContext(Node* node) { 1247 Type* Typer::Visitor::TypeJSCreateWithContext(Node* node) {
1244 return Type::OtherInternal(); 1248 return Type::OtherInternal();
1245 } 1249 }
1246 1250
1247 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) { 1251 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) {
1248 return Type::OtherInternal(); 1252 return Type::OtherInternal();
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1706 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { 1710 Type* Typer::Visitor::TypeConstant(Handle<Object> value) {
1707 if (Type::IsInteger(*value)) { 1711 if (Type::IsInteger(*value)) {
1708 return Type::Range(value->Number(), value->Number(), zone()); 1712 return Type::Range(value->Number(), value->Number(), zone());
1709 } 1713 }
1710 return Type::NewConstant(value, zone()); 1714 return Type::NewConstant(value, zone());
1711 } 1715 }
1712 1716
1713 } // namespace compiler 1717 } // namespace compiler
1714 } // namespace internal 1718 } // namespace internal
1715 } // namespace v8 1719 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/verifier.cc » ('j') | src/contexts.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698