| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2152 HCallConstantFunction(Handle<JSFunction> function, int argument_count) | 2152 HCallConstantFunction(Handle<JSFunction> function, int argument_count) |
| 2153 : HCall<0>(argument_count), | 2153 : HCall<0>(argument_count), |
| 2154 function_(function), | 2154 function_(function), |
| 2155 formal_parameter_count_(function->shared()->formal_parameter_count()) {} | 2155 formal_parameter_count_(function->shared()->formal_parameter_count()) {} |
| 2156 | 2156 |
| 2157 Handle<JSFunction> function() const { return function_; } | 2157 Handle<JSFunction> function() const { return function_; } |
| 2158 int formal_parameter_count() const { return formal_parameter_count_; } | 2158 int formal_parameter_count() const { return formal_parameter_count_; } |
| 2159 | 2159 |
| 2160 bool IsApplyFunction() const { | 2160 bool IsApplyFunction() const { |
| 2161 return function_->code() == | 2161 return function_->code() == |
| 2162 Isolate::Current()->builtins()->builtin(Builtins::kFunctionApply); | 2162 function_->GetIsolate()->builtins()->builtin(Builtins::kFunctionApply); |
| 2163 } | 2163 } |
| 2164 | 2164 |
| 2165 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 2165 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 2166 | 2166 |
| 2167 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | 2167 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { |
| 2168 return Representation::None(); | 2168 return Representation::None(); |
| 2169 } | 2169 } |
| 2170 | 2170 |
| 2171 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction) | 2171 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction) |
| 2172 | 2172 |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2622 bool has_migration_target_; | 2622 bool has_migration_target_; |
| 2623 SmallMapList map_set_; | 2623 SmallMapList map_set_; |
| 2624 ZoneList<UniqueValueId> map_unique_ids_; | 2624 ZoneList<UniqueValueId> map_unique_ids_; |
| 2625 }; | 2625 }; |
| 2626 | 2626 |
| 2627 | 2627 |
| 2628 class HCheckValue V8_FINAL : public HUnaryOperation { | 2628 class HCheckValue V8_FINAL : public HUnaryOperation { |
| 2629 public: | 2629 public: |
| 2630 static HCheckValue* New(Zone* zone, HValue* context, | 2630 static HCheckValue* New(Zone* zone, HValue* context, |
| 2631 HValue* value, Handle<JSFunction> target) { | 2631 HValue* value, Handle<JSFunction> target) { |
| 2632 bool in_new_space = Isolate::Current()->heap()->InNewSpace(*target); | 2632 bool in_new_space = zone->isolate()->heap()->InNewSpace(*target); |
| 2633 HCheckValue* check = new(zone) HCheckValue(value, target, in_new_space); | 2633 HCheckValue* check = new(zone) HCheckValue(value, target, in_new_space); |
| 2634 return check; | 2634 return check; |
| 2635 } | 2635 } |
| 2636 static HCheckValue* New(Zone* zone, HValue* context, | 2636 static HCheckValue* New(Zone* zone, HValue* context, |
| 2637 HValue* value, Handle<Map> map, UniqueValueId id) { | 2637 HValue* value, Handle<Map> map, UniqueValueId id) { |
| 2638 HCheckValue* check = new(zone) HCheckValue(value, map, false); | 2638 HCheckValue* check = new(zone) HCheckValue(value, map, false); |
| 2639 check->object_unique_id_ = id; | 2639 check->object_unique_id_ = id; |
| 2640 return check; | 2640 return check; |
| 2641 } | 2641 } |
| 2642 | 2642 |
| (...skipping 4304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6947 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 6947 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 6948 }; | 6948 }; |
| 6949 | 6949 |
| 6950 | 6950 |
| 6951 #undef DECLARE_INSTRUCTION | 6951 #undef DECLARE_INSTRUCTION |
| 6952 #undef DECLARE_CONCRETE_INSTRUCTION | 6952 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6953 | 6953 |
| 6954 } } // namespace v8::internal | 6954 } } // namespace v8::internal |
| 6955 | 6955 |
| 6956 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6956 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |