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

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

Issue 1478303002: Revert of [runtime] Replace global object link with native context link in all contexts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/js-typed-lowering.h » ('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 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/js-operator.h" 5 #include "src/compiler/js-operator.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/lazy-instance.h" 9 #include "src/base/lazy-instance.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 V(HasProperty, Operator::kNoProperties, 2, 1) \ 457 V(HasProperty, Operator::kNoProperties, 2, 1) \
458 V(TypeOf, Operator::kEliminatable, 1, 1) \ 458 V(TypeOf, Operator::kEliminatable, 1, 1) \
459 V(InstanceOf, Operator::kNoProperties, 2, 1) \ 459 V(InstanceOf, Operator::kNoProperties, 2, 1) \
460 V(ForInDone, Operator::kPure, 2, 1) \ 460 V(ForInDone, Operator::kPure, 2, 1) \
461 V(ForInNext, Operator::kNoProperties, 4, 1) \ 461 V(ForInNext, Operator::kNoProperties, 4, 1) \
462 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ 462 V(ForInPrepare, Operator::kNoProperties, 1, 3) \
463 V(ForInStep, Operator::kPure, 1, 1) \ 463 V(ForInStep, Operator::kPure, 1, 1) \
464 V(LoadMessage, Operator::kNoThrow, 0, 1) \ 464 V(LoadMessage, Operator::kNoThrow, 0, 1) \
465 V(StoreMessage, Operator::kNoThrow, 1, 0) \ 465 V(StoreMessage, Operator::kNoThrow, 1, 0) \
466 V(StackCheck, Operator::kNoProperties, 0, 0) \ 466 V(StackCheck, Operator::kNoProperties, 0, 0) \
467 V(LoadNativeContext, Operator::kEliminatable, 1, 1) \
467 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ 468 V(CreateWithContext, Operator::kNoProperties, 2, 1) \
468 V(CreateModuleContext, Operator::kNoProperties, 2, 1) 469 V(CreateModuleContext, Operator::kNoProperties, 2, 1)
469 470
470 471
471 #define CACHED_OP_LIST_WITH_LANGUAGE_MODE(V) \ 472 #define CACHED_OP_LIST_WITH_LANGUAGE_MODE(V) \
472 V(LessThan, Operator::kNoProperties, 2, 1) \ 473 V(LessThan, Operator::kNoProperties, 2, 1) \
473 V(GreaterThan, Operator::kNoProperties, 2, 1) \ 474 V(GreaterThan, Operator::kNoProperties, 2, 1) \
474 V(LessThanOrEqual, Operator::kNoProperties, 2, 1) \ 475 V(LessThanOrEqual, Operator::kNoProperties, 2, 1) \
475 V(GreaterThanOrEqual, Operator::kNoProperties, 2, 1) \ 476 V(GreaterThanOrEqual, Operator::kNoProperties, 2, 1) \
476 V(BitwiseOr, Operator::kNoProperties, 2, 1) \ 477 V(BitwiseOr, Operator::kNoProperties, 2, 1) \
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- 826 return new (zone()) Operator1<Handle<ScopeInfo>>( // --
826 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode 827 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode
827 "JSCreateScriptContext", // name 828 "JSCreateScriptContext", // name
828 1, 1, 1, 1, 1, 2, // counts 829 1, 1, 1, 1, 1, 2, // counts
829 scpope_info); // parameter 830 scpope_info); // parameter
830 } 831 }
831 832
832 } // namespace compiler 833 } // namespace compiler
833 } // namespace internal 834 } // namespace internal
834 } // namespace v8 835 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/js-typed-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698