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

Side by Side Diff: src/hydrogen-instructions.h

Issue 1144523004: Remove unnecessary Isolate::Current calls from hydrogen-instructions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 7 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
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_HYDROGEN_INSTRUCTIONS_H_ 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ 6 #define V8_HYDROGEN_INSTRUCTIONS_H_
7 7
8 #include <cstring> 8 #include <cstring>
9 #include <iosfwd> 9 #include <iosfwd>
10 10
(...skipping 6825 matching lines...) Expand 10 before | Expand all | Expand 10 after
6836 HObjectAccess access() const { return access_; } 6836 HObjectAccess access() const { return access_; }
6837 HValue* dominator() const { return dominator_; } 6837 HValue* dominator() const { return dominator_; }
6838 bool has_transition() const { return HasTransitionField::decode(bit_field_); } 6838 bool has_transition() const { return HasTransitionField::decode(bit_field_); }
6839 StoreFieldOrKeyedMode store_mode() const { 6839 StoreFieldOrKeyedMode store_mode() const {
6840 return StoreModeField::decode(bit_field_); 6840 return StoreModeField::decode(bit_field_);
6841 } 6841 }
6842 6842
6843 Handle<Map> transition_map() const { 6843 Handle<Map> transition_map() const {
6844 if (has_transition()) { 6844 if (has_transition()) {
6845 return Handle<Map>::cast( 6845 return Handle<Map>::cast(
6846 HConstant::cast(transition())->handle(Isolate::Current())); 6846 HConstant::cast(transition())->handle(isolate()));
6847 } else { 6847 } else {
6848 return Handle<Map>(); 6848 return Handle<Map>();
6849 } 6849 }
6850 } 6850 }
6851 6851
6852 void SetTransition(HConstant* transition) { 6852 void SetTransition(HConstant* transition) {
6853 DCHECK(!has_transition()); // Only set once. 6853 DCHECK(!has_transition()); // Only set once.
6854 SetOperandAt(2, transition); 6854 SetOperandAt(2, transition);
6855 bit_field_ = HasTransitionField::update(bit_field_, true); 6855 bit_field_ = HasTransitionField::update(bit_field_, true);
6856 SetChangesFlag(kMaps); 6856 SetChangesFlag(kMaps);
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
7945 }; 7945 };
7946 7946
7947 7947
7948 7948
7949 #undef DECLARE_INSTRUCTION 7949 #undef DECLARE_INSTRUCTION
7950 #undef DECLARE_CONCRETE_INSTRUCTION 7950 #undef DECLARE_CONCRETE_INSTRUCTION
7951 7951
7952 } } // namespace v8::internal 7952 } } // namespace v8::internal
7953 7953
7954 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7954 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698