| Index: src/hydrogen-instructions.h
|
| ===================================================================
|
| --- src/hydrogen-instructions.h (revision 7563)
|
| +++ src/hydrogen-instructions.h (working copy)
|
| @@ -1244,7 +1244,8 @@
|
| Handle<JSFunction> function() const { return function_; }
|
|
|
| bool IsApplyFunction() const {
|
| - return function_->code() == Builtins::builtin(Builtins::FunctionApply);
|
| + return function_->code() ==
|
| + Isolate::Current()->builtins()->builtin(Builtins::FunctionApply);
|
| }
|
|
|
| virtual void PrintDataTo(StringStream* stream);
|
| @@ -1377,12 +1378,12 @@
|
| class HCallRuntime: public HCall<0> {
|
| public:
|
| HCallRuntime(Handle<String> name,
|
| - Runtime::Function* c_function,
|
| + const Runtime::Function* c_function,
|
| int argument_count)
|
| : HCall<0>(argument_count), c_function_(c_function), name_(name) { }
|
| virtual void PrintDataTo(StringStream* stream);
|
|
|
| - Runtime::Function* function() const { return c_function_; }
|
| + const Runtime::Function* function() const { return c_function_; }
|
| Handle<String> name() const { return name_; }
|
|
|
| virtual Representation RequiredInputRepresentation(int index) const {
|
| @@ -1392,7 +1393,7 @@
|
| DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call_runtime")
|
|
|
| private:
|
| - Runtime::Function* c_function_;
|
| + const Runtime::Function* c_function_;
|
| Handle<String> name_;
|
| };
|
|
|
| @@ -1770,7 +1771,7 @@
|
| }
|
|
|
| virtual intptr_t Hashcode() {
|
| - ASSERT(!Heap::IsAllocationAllowed());
|
| + ASSERT(!HEAP->IsAllocationAllowed());
|
| intptr_t hash = reinterpret_cast<intptr_t>(*prototype());
|
| hash = 17 * hash + reinterpret_cast<intptr_t>(*holder());
|
| return hash;
|
| @@ -1934,7 +1935,7 @@
|
|
|
| Handle<Object> handle() const { return handle_; }
|
|
|
| - bool InOldSpace() const { return !Heap::InNewSpace(*handle_); }
|
| + bool InOldSpace() const { return !HEAP->InNewSpace(*handle_); }
|
|
|
| virtual Representation RequiredInputRepresentation(int index) const {
|
| return Representation::None();
|
| @@ -1959,7 +1960,7 @@
|
| bool HasStringValue() const { return handle_->IsString(); }
|
|
|
| virtual intptr_t Hashcode() {
|
| - ASSERT(!Heap::allow_allocation(false));
|
| + ASSERT(!HEAP->allow_allocation(false));
|
| return reinterpret_cast<intptr_t>(*handle());
|
| }
|
|
|
| @@ -2818,7 +2819,7 @@
|
| virtual void PrintDataTo(StringStream* stream);
|
|
|
| virtual intptr_t Hashcode() {
|
| - ASSERT(!Heap::allow_allocation(false));
|
| + ASSERT(!HEAP->allow_allocation(false));
|
| return reinterpret_cast<intptr_t>(*cell_);
|
| }
|
|
|
|
|