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

Side by Side Diff: src/compiler.h

Issue 1728593002: [Interpreter] Add support for cpu profiler logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 9 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/code-stubs.cc ('k') | src/compiler.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_COMPILER_H_ 5 #ifndef V8_COMPILER_H_
6 #define V8_COMPILER_H_ 6 #define V8_COMPILER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 int num_heap_slots() const; 109 int num_heap_slots() const;
110 110
111 void set_parameter_count(int parameter_count) { 111 void set_parameter_count(int parameter_count) {
112 DCHECK(IsStub()); 112 DCHECK(IsStub());
113 parameter_count_ = parameter_count; 113 parameter_count_ = parameter_count;
114 } 114 }
115 115
116 bool has_bytecode_array() const { return !bytecode_array_.is_null(); } 116 bool has_bytecode_array() const { return !bytecode_array_.is_null(); }
117 Handle<BytecodeArray> bytecode_array() const { return bytecode_array_; } 117 Handle<BytecodeArray> bytecode_array() const { return bytecode_array_; }
118 118
119 Handle<AbstractCode> abstract_code() const {
120 return has_bytecode_array() ? Handle<AbstractCode>::cast(bytecode_array())
121 : Handle<AbstractCode>::cast(code());
122 }
123
119 bool is_tracking_positions() const { return track_positions_; } 124 bool is_tracking_positions() const { return track_positions_; }
120 125
121 bool is_calling() const { 126 bool is_calling() const {
122 return GetFlag(kDeferredCalling) || GetFlag(kNonDeferredCalling); 127 return GetFlag(kDeferredCalling) || GetFlag(kNonDeferredCalling);
123 } 128 }
124 129
125 void MarkAsDeferredCalling() { SetFlag(kDeferredCalling); } 130 void MarkAsDeferredCalling() { SetFlag(kDeferredCalling); }
126 131
127 bool is_deferred_calling() const { return GetFlag(kDeferredCalling); } 132 bool is_deferred_calling() const { return GetFlag(kDeferredCalling); }
128 133
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 size_t info_zone_start_allocation_size_; 677 size_t info_zone_start_allocation_size_;
673 base::ElapsedTimer timer_; 678 base::ElapsedTimer timer_;
674 679
675 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 680 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
676 }; 681 };
677 682
678 } // namespace internal 683 } // namespace internal
679 } // namespace v8 684 } // namespace v8
680 685
681 #endif // V8_COMPILER_H_ 686 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698