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

Side by Side Diff: src/code-stubs.h

Issue 2143983002: Fix context for fast accessors (lazy). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/crankshaft/hydrogen.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_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/code-stub-assembler.h" 10 #include "src/code-stub-assembler.h"
(...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after
1766 static const int kArgBits = 3; 1766 static const int kArgBits = 3;
1767 static const int kArgMax = (1 << kArgBits) - 1; 1767 static const int kArgMax = (1 << kArgBits) - 1;
1768 1768
1769 // CallApiCallbackStub for regular setters and getters. 1769 // CallApiCallbackStub for regular setters and getters.
1770 CallApiCallbackStub(Isolate* isolate, bool is_store, bool call_data_undefined, 1770 CallApiCallbackStub(Isolate* isolate, bool is_store, bool call_data_undefined,
1771 bool is_lazy) 1771 bool is_lazy)
1772 : CallApiCallbackStub(isolate, is_store ? 1 : 0, is_store, 1772 : CallApiCallbackStub(isolate, is_store ? 1 : 0, is_store,
1773 call_data_undefined, is_lazy) {} 1773 call_data_undefined, is_lazy) {}
1774 1774
1775 // CallApiCallbackStub for callback functions. 1775 // CallApiCallbackStub for callback functions.
1776 CallApiCallbackStub(Isolate* isolate, int argc, bool call_data_undefined) 1776 CallApiCallbackStub(Isolate* isolate, int argc, bool call_data_undefined,
1777 : CallApiCallbackStub(isolate, argc, false, call_data_undefined, false) {} 1777 bool is_lazy)
1778 : CallApiCallbackStub(isolate, argc, false, call_data_undefined,
1779 is_lazy) {}
1778 1780
1779 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override { 1781 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override {
1780 return ApiCallbackDescriptorBase::ForArgs(isolate(), argc()); 1782 return ApiCallbackDescriptorBase::ForArgs(isolate(), argc());
1781 } 1783 }
1782 1784
1783 private: 1785 private:
1784 CallApiCallbackStub(Isolate* isolate, int argc, bool is_store, 1786 CallApiCallbackStub(Isolate* isolate, int argc, bool is_store,
1785 bool call_data_undefined, bool is_lazy) 1787 bool call_data_undefined, bool is_lazy)
1786 : PlatformCodeStub(isolate) { 1788 : PlatformCodeStub(isolate) {
1787 CHECK(0 <= argc && argc <= kArgMax); 1789 CHECK(0 <= argc && argc <= kArgMax);
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
3109 #undef DEFINE_HYDROGEN_CODE_STUB 3111 #undef DEFINE_HYDROGEN_CODE_STUB
3110 #undef DEFINE_CODE_STUB 3112 #undef DEFINE_CODE_STUB
3111 #undef DEFINE_CODE_STUB_BASE 3113 #undef DEFINE_CODE_STUB_BASE
3112 3114
3113 extern Representation RepresentationFromType(Type* type); 3115 extern Representation RepresentationFromType(Type* type);
3114 3116
3115 } // namespace internal 3117 } // namespace internal
3116 } // namespace v8 3118 } // namespace v8
3117 3119
3118 #endif // V8_CODE_STUBS_H_ 3120 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698