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

Side by Side Diff: src/compiler/instruction.h

Issue 2803853005: Inline Array.prototype.forEach in TurboFan (Closed)
Patch Set: Disable new array builtins by default Created 3 years, 6 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 | « src/compiler/frame-states.cc ('k') | src/compiler/js-call-reducer.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 #ifndef V8_COMPILER_INSTRUCTION_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_H_
6 #define V8_COMPILER_INSTRUCTION_H_ 6 #define V8_COMPILER_INSTRUCTION_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 1289
1290 FrameStateType type() const { return type_; } 1290 FrameStateType type() const { return type_; }
1291 BailoutId bailout_id() const { return bailout_id_; } 1291 BailoutId bailout_id() const { return bailout_id_; }
1292 OutputFrameStateCombine state_combine() const { return frame_state_combine_; } 1292 OutputFrameStateCombine state_combine() const { return frame_state_combine_; }
1293 size_t parameters_count() const { return parameters_count_; } 1293 size_t parameters_count() const { return parameters_count_; }
1294 size_t locals_count() const { return locals_count_; } 1294 size_t locals_count() const { return locals_count_; }
1295 size_t stack_count() const { return stack_count_; } 1295 size_t stack_count() const { return stack_count_; }
1296 MaybeHandle<SharedFunctionInfo> shared_info() const { return shared_info_; } 1296 MaybeHandle<SharedFunctionInfo> shared_info() const { return shared_info_; }
1297 FrameStateDescriptor* outer_state() const { return outer_state_; } 1297 FrameStateDescriptor* outer_state() const { return outer_state_; }
1298 bool HasContext() const { 1298 bool HasContext() const {
1299 return FrameStateFunctionInfo::IsJSFunctionType(type_); 1299 return FrameStateFunctionInfo::IsJSFunctionType(type_) ||
1300 type_ == FrameStateType::kBuiltinContinuation;
1300 } 1301 }
1301 1302
1302 size_t GetSize(OutputFrameStateCombine combine = 1303 size_t GetSize(OutputFrameStateCombine combine =
1303 OutputFrameStateCombine::Ignore()) const; 1304 OutputFrameStateCombine::Ignore()) const;
1304 size_t GetTotalSize() const; 1305 size_t GetTotalSize() const;
1305 size_t GetFrameCount() const; 1306 size_t GetFrameCount() const;
1306 size_t GetJSFrameCount() const; 1307 size_t GetJSFrameCount() const;
1307 1308
1308 StateValueList* GetStateValueDescriptors() { return &values_; } 1309 StateValueList* GetStateValueDescriptors() { return &values_; }
1309 1310
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 }; 1667 };
1667 1668
1668 V8_EXPORT_PRIVATE std::ostream& operator<<( 1669 V8_EXPORT_PRIVATE std::ostream& operator<<(
1669 std::ostream& os, const PrintableInstructionSequence& code); 1670 std::ostream& os, const PrintableInstructionSequence& code);
1670 1671
1671 } // namespace compiler 1672 } // namespace compiler
1672 } // namespace internal 1673 } // namespace internal
1673 } // namespace v8 1674 } // namespace v8
1674 1675
1675 #endif // V8_COMPILER_INSTRUCTION_H_ 1676 #endif // V8_COMPILER_INSTRUCTION_H_
OLDNEW
« no previous file with comments | « src/compiler/frame-states.cc ('k') | src/compiler/js-call-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698