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

Side by Side Diff: src/code-factory.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/code-factory.h" 5 #include "src/code-factory.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 } 337 }
338 338
339 // static 339 // static
340 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { 340 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) {
341 FastCloneShallowObjectStub stub(isolate, length); 341 FastCloneShallowObjectStub stub(isolate, length);
342 return make_callable(stub); 342 return make_callable(stub);
343 } 343 }
344 344
345 345
346 // static 346 // static
347 Callable CodeFactory::FastNewFunctionContext(Isolate* isolate) { 347 Callable CodeFactory::FastNewFunctionContext(Isolate* isolate, bool for_eval) {
348 FastNewFunctionContextStub stub(isolate); 348 FastNewFunctionContextStub stub(isolate, for_eval);
349 return make_callable(stub); 349 return make_callable(stub);
350 } 350 }
351 351
352 // static 352 // static
353 Callable CodeFactory::FastNewClosure(Isolate* isolate) { 353 Callable CodeFactory::FastNewClosure(Isolate* isolate) {
354 FastNewClosureStub stub(isolate); 354 FastNewClosureStub stub(isolate);
355 return make_callable(stub); 355 return make_callable(stub);
356 } 356 }
357 357
358 // static 358 // static
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 } 477 }
478 478
479 // static 479 // static
480 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { 480 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) {
481 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), 481 return Callable(isolate->builtins()->InterpreterOnStackReplacement(),
482 ContextOnlyDescriptor(isolate)); 482 ContextOnlyDescriptor(isolate));
483 } 483 }
484 484
485 } // namespace internal 485 } // namespace internal
486 } // namespace v8 486 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | src/contexts.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698