Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 4141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4152 inline byte get(int index); | 4152 inline byte get(int index); |
| 4153 inline void set(int index, byte value); | 4153 inline void set(int index, byte value); |
| 4154 | 4154 |
| 4155 // Returns data start address. | 4155 // Returns data start address. |
| 4156 inline Address GetFirstBytecodeAddress(); | 4156 inline Address GetFirstBytecodeAddress(); |
| 4157 | 4157 |
| 4158 // Accessors for frame size. | 4158 // Accessors for frame size. |
| 4159 inline int frame_size() const; | 4159 inline int frame_size() const; |
| 4160 inline void set_frame_size(int frame_size); | 4160 inline void set_frame_size(int frame_size); |
| 4161 | 4161 |
| 4162 // Accessor for local count (derived from frame_size). | |
| 4163 inline int local_count() const; | |
|
Michael Starzinger
2015/09/03 12:19:40
nit: Wouldn't it better fit the semantics to call
oth
2015/09/04 11:06:36
Done.
| |
| 4164 | |
| 4162 // Accessors for parameter count (including implicit 'this' receiver). | 4165 // Accessors for parameter count (including implicit 'this' receiver). |
| 4163 inline int parameter_count() const; | 4166 inline int parameter_count() const; |
| 4164 inline void set_parameter_count(int number_of_parameters); | 4167 inline void set_parameter_count(int number_of_parameters); |
| 4165 | 4168 |
| 4166 // Accessors for the constant pool. | 4169 // Accessors for the constant pool. |
| 4167 DECL_ACCESSORS(constant_pool, FixedArray) | 4170 DECL_ACCESSORS(constant_pool, FixedArray) |
| 4168 | 4171 |
| 4169 DECLARE_CAST(BytecodeArray) | 4172 DECLARE_CAST(BytecodeArray) |
| 4170 | 4173 |
| 4171 // Dispatched behavior. | 4174 // Dispatched behavior. |
| (...skipping 6216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 10388 } else { | 10391 } else { |
| 10389 value &= ~(1 << bit_position); | 10392 value &= ~(1 << bit_position); |
| 10390 } | 10393 } |
| 10391 return value; | 10394 return value; |
| 10392 } | 10395 } |
| 10393 }; | 10396 }; |
| 10394 | 10397 |
| 10395 } } // namespace v8::internal | 10398 } } // namespace v8::internal |
| 10396 | 10399 |
| 10397 #endif // V8_OBJECTS_H_ | 10400 #endif // V8_OBJECTS_H_ |
| OLD | NEW |