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

Side by Side Diff: src/compiler/js-operator.h

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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #ifndef V8_COMPILER_JS_OPERATOR_H_ 5 #ifndef V8_COMPILER_JS_OPERATOR_H_
6 #define V8_COMPILER_JS_OPERATOR_H_ 6 #define V8_COMPILER_JS_OPERATOR_H_
7 7
8 #include "src/base/compiler-specific.h" 8 #include "src/base/compiler-specific.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/runtime/runtime.h" 10 #include "src/runtime/runtime.h"
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 // Used to implement Ignition's SuspendGenerator bytecode. 514 // Used to implement Ignition's SuspendGenerator bytecode.
515 const Operator* GeneratorStore(int register_count); 515 const Operator* GeneratorStore(int register_count);
516 516
517 // Used to implement Ignition's ResumeGenerator bytecode. 517 // Used to implement Ignition's ResumeGenerator bytecode.
518 const Operator* GeneratorRestoreContinuation(); 518 const Operator* GeneratorRestoreContinuation();
519 const Operator* GeneratorRestoreRegister(int index); 519 const Operator* GeneratorRestoreRegister(int index);
520 520
521 const Operator* StackCheck(); 521 const Operator* StackCheck();
522 522
523 const Operator* CreateFunctionContext(int slot_count); 523 const Operator* CreateFunctionContext(int slot_count);
524 const Operator* CreateEvalContext(int slot_count);
524 const Operator* CreateCatchContext(const Handle<String>& name, 525 const Operator* CreateCatchContext(const Handle<String>& name,
525 const Handle<ScopeInfo>& scope_info); 526 const Handle<ScopeInfo>& scope_info);
526 const Operator* CreateWithContext(const Handle<ScopeInfo>& scope_info); 527 const Operator* CreateWithContext(const Handle<ScopeInfo>& scope_info);
527 const Operator* CreateBlockContext(const Handle<ScopeInfo>& scpope_info); 528 const Operator* CreateBlockContext(const Handle<ScopeInfo>& scpope_info);
528 const Operator* CreateModuleContext(); 529 const Operator* CreateModuleContext();
529 const Operator* CreateScriptContext(const Handle<ScopeInfo>& scpope_info); 530 const Operator* CreateScriptContext(const Handle<ScopeInfo>& scpope_info);
530 531
531 private: 532 private:
532 Zone* zone() const { return zone_; } 533 Zone* zone() const { return zone_; }
533 534
534 const JSOperatorGlobalCache& cache_; 535 const JSOperatorGlobalCache& cache_;
535 Zone* const zone_; 536 Zone* const zone_;
536 537
537 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); 538 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder);
538 }; 539 };
539 540
540 } // namespace compiler 541 } // namespace compiler
541 } // namespace internal 542 } // namespace internal
542 } // namespace v8 543 } // namespace v8
543 544
544 #endif // V8_COMPILER_JS_OPERATOR_H_ 545 #endif // V8_COMPILER_JS_OPERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698