Index: src/arguments.h |
=================================================================== |
--- src/arguments.h (revision 7267) |
+++ src/arguments.h (working copy) |
@@ -65,7 +65,6 @@ |
int length() const { return length_; } |
Object** arguments() { return arguments_; } |
- |
private: |
int length_; |
Object** arguments_; |
@@ -77,15 +76,16 @@ |
// can. |
class CustomArguments : public Relocatable { |
public: |
- inline CustomArguments(Object* data, |
+ inline CustomArguments(Isolate* isolate, |
+ Object* data, |
Object* self, |
- JSObject* holder) { |
+ JSObject* holder) : Relocatable(isolate) { |
values_[2] = self; |
values_[1] = holder; |
values_[0] = data; |
} |
- inline CustomArguments() { |
+ inline explicit CustomArguments(Isolate* isolate) : Relocatable(isolate) { |
#ifdef DEBUG |
for (size_t i = 0; i < ARRAY_SIZE(values_); i++) { |
values_[i] = reinterpret_cast<Object*>(kZapValue); |
@@ -99,6 +99,8 @@ |
Object* values_[3]; |
}; |
+#define RUNTIME_CALLING_CONVENTION Arguments args, Isolate* isolate |
+#define RUNTIME_GET_ISOLATE ASSERT(isolate == Isolate::Current()) |
} } // namespace v8::internal |