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

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

Issue 2341743003: [interpreter] Inline FastCloneShallowArrayStub into bytecode handler (Closed)
Patch Set: rebase Created 4 years, 3 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/code-stubs.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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 public: 1267 public:
1268 FastCloneShallowArrayStub(Isolate* isolate, 1268 FastCloneShallowArrayStub(Isolate* isolate,
1269 AllocationSiteMode allocation_site_mode) 1269 AllocationSiteMode allocation_site_mode)
1270 : TurboFanCodeStub(isolate) { 1270 : TurboFanCodeStub(isolate) {
1271 minor_key_ = AllocationSiteModeBits::encode(allocation_site_mode); 1271 minor_key_ = AllocationSiteModeBits::encode(allocation_site_mode);
1272 } 1272 }
1273 1273
1274 static compiler::Node* Generate(CodeStubAssembler* assembler, 1274 static compiler::Node* Generate(CodeStubAssembler* assembler,
1275 compiler::Node* closure, 1275 compiler::Node* closure,
1276 compiler::Node* literal_index, 1276 compiler::Node* literal_index,
1277 compiler::Node* constant_elements,
1278 compiler::Node* context, 1277 compiler::Node* context,
1278 CodeStubAssembler::Label* call_runtime,
1279 AllocationSiteMode allocation_site_mode); 1279 AllocationSiteMode allocation_site_mode);
1280 1280
1281 AllocationSiteMode allocation_site_mode() const { 1281 AllocationSiteMode allocation_site_mode() const {
1282 return AllocationSiteModeBits::decode(minor_key_); 1282 return AllocationSiteModeBits::decode(minor_key_);
1283 } 1283 }
1284 1284
1285 private: 1285 private:
1286 class AllocationSiteModeBits: public BitField<AllocationSiteMode, 0, 1> {}; 1286 class AllocationSiteModeBits: public BitField<AllocationSiteMode, 0, 1> {};
1287 1287
1288 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneShallowArray); 1288 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneShallowArray);
(...skipping 1863 matching lines...) Expand 10 before | Expand all | Expand 10 after
3152 #undef DEFINE_HYDROGEN_CODE_STUB 3152 #undef DEFINE_HYDROGEN_CODE_STUB
3153 #undef DEFINE_CODE_STUB 3153 #undef DEFINE_CODE_STUB
3154 #undef DEFINE_CODE_STUB_BASE 3154 #undef DEFINE_CODE_STUB_BASE
3155 3155
3156 extern Representation RepresentationFromMachineType(MachineType type); 3156 extern Representation RepresentationFromMachineType(MachineType type);
3157 3157
3158 } // namespace internal 3158 } // namespace internal
3159 } // namespace v8 3159 } // namespace v8
3160 3160
3161 #endif // V8_CODE_STUBS_H_ 3161 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698