Chromium Code Reviews| Index: src/frames.h |
| diff --git a/src/frames.h b/src/frames.h |
| index 397c7b5db9cf7f912d7c3fe53a9392141b913ae2..d7d3f4db214829898aa32b5493f7540195155687 100644 |
| --- a/src/frames.h |
| +++ b/src/frames.h |
| @@ -114,25 +114,23 @@ class StackHandler BASE_EMBEDDED { |
| class StandardFrameConstants : public AllStatic { |
| public: |
| // Fixed part of the frame consists of return address, caller fp, |
| - // constant pool (if FLAG_enable_ool_constant_pool), context, and function. |
| - // StandardFrame::IterateExpressions assumes that kLastObjectOffset is the |
| - // last object pointer. |
| + // constant pool (if FLAG_enable_embedded_constant_pool), context, and |
| + // function. StandardFrame::IterateExpressions assumes that kLastObjectOffset |
| + // is the last object pointer. |
| static const int kCPSlotSize = |
| - FLAG_enable_ool_constant_pool ? kPointerSize : 0; |
| + FLAG_enable_embedded_constant_pool ? kPointerSize : 0; |
| static const int kFixedFrameSizeFromFp = 2 * kPointerSize + kCPSlotSize; |
| static const int kFixedFrameSize = kPCOnStackSize + kFPOnStackSize + |
| kFixedFrameSizeFromFp; |
| static const int kExpressionsOffset = -3 * kPointerSize - kCPSlotSize; |
| static const int kMarkerOffset = -2 * kPointerSize - kCPSlotSize; |
| static const int kContextOffset = -1 * kPointerSize - kCPSlotSize; |
| - static const int kConstantPoolOffset = FLAG_enable_ool_constant_pool ? |
| - -1 * kPointerSize : 0; |
| + static const int kConstantPoolOffset = kCPSlotSize ? -1 * kPointerSize : 0; |
|
rmcilroy
2015/05/20 14:32:11
nit - align '='
MTBrandyberry
2015/05/20 22:28:22
git cl format did this. Should I override?
rmcilroy
2015/05/22 12:21:22
Ahh right, in that case could you touch all the co
MTBrandyberry
2015/05/26 19:19:05
Acknowledged.
|
| static const int kCallerFPOffset = 0 * kPointerSize; |
| static const int kCallerPCOffset = +1 * kFPOnStackSize; |
| static const int kCallerSPOffset = kCallerPCOffset + 1 * kPCOnStackSize; |
| - static const int kLastObjectOffset = FLAG_enable_ool_constant_pool ? |
| - kConstantPoolOffset : kContextOffset; |
| + static const int kLastObjectOffset = kContextOffset; |
|
rmcilroy
2015/05/20 14:32:11
ditto
MTBrandyberry
2015/05/20 22:28:22
see above
|
| }; |
| @@ -215,8 +213,8 @@ class StackFrame BASE_EMBEDDED { |
| void set_pc(Address pc) { *pc_address() = pc; } |
| Address constant_pool() const { return *constant_pool_address(); } |
| - void set_constant_pool(ConstantPoolArray* constant_pool) { |
| - *constant_pool_address() = reinterpret_cast<Address>(constant_pool); |
| + void set_constant_pool(Address constant_pool) { |
| + *constant_pool_address() = constant_pool; |
| } |
| virtual void SetCallerFp(Address caller_fp) = 0; |
| @@ -258,7 +256,8 @@ class StackFrame BASE_EMBEDDED { |
| unsigned* stack_slots); |
| virtual void Iterate(ObjectVisitor* v) const = 0; |
| - static void IteratePc(ObjectVisitor* v, Address* pc_address, Code* holder); |
| + static void IteratePc(ObjectVisitor* v, Address* pc_address, |
| + Address* constant_pool_address, Code* holder); |
| // Sets a callback function for return-address rewriting profilers |
| // to resolve the location of a return address to the location of the |
| @@ -380,7 +379,6 @@ class ExitFrame: public StackFrame { |
| virtual Code* unchecked_code() const; |
| Object*& code_slot() const; |
| - Object*& constant_pool_slot() const; |
| // Garbage collection support. |
| virtual void Iterate(ObjectVisitor* v) const; |