| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1239 | 1239 |
| 1240 class HCallConstantFunction: public HCall<0> { | 1240 class HCallConstantFunction: public HCall<0> { |
| 1241 public: | 1241 public: |
| 1242 HCallConstantFunction(Handle<JSFunction> function, int argument_count) | 1242 HCallConstantFunction(Handle<JSFunction> function, int argument_count) |
| 1243 : HCall<0>(argument_count), function_(function) { } | 1243 : HCall<0>(argument_count), function_(function) { } |
| 1244 | 1244 |
| 1245 Handle<JSFunction> function() const { return function_; } | 1245 Handle<JSFunction> function() const { return function_; } |
| 1246 | 1246 |
| 1247 bool IsApplyFunction() const { | 1247 bool IsApplyFunction() const { |
| 1248 return function_->code() == | 1248 return function_->code() == |
| 1249 Isolate::Current()->builtins()->builtin(Builtins::FunctionApply); | 1249 Isolate::Current()->builtins()->builtin(Builtins::kFunctionApply); |
| 1250 } | 1250 } |
| 1251 | 1251 |
| 1252 virtual void PrintDataTo(StringStream* stream); | 1252 virtual void PrintDataTo(StringStream* stream); |
| 1253 | 1253 |
| 1254 virtual Representation RequiredInputRepresentation(int index) const { | 1254 virtual Representation RequiredInputRepresentation(int index) const { |
| 1255 return Representation::None(); | 1255 return Representation::None(); |
| 1256 } | 1256 } |
| 1257 | 1257 |
| 1258 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call_constant_function") | 1258 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call_constant_function") |
| 1259 | 1259 |
| (...skipping 2261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3521 HValue* object() { return left(); } | 3521 HValue* object() { return left(); } |
| 3522 HValue* key() { return right(); } | 3522 HValue* key() { return right(); } |
| 3523 }; | 3523 }; |
| 3524 | 3524 |
| 3525 #undef DECLARE_INSTRUCTION | 3525 #undef DECLARE_INSTRUCTION |
| 3526 #undef DECLARE_CONCRETE_INSTRUCTION | 3526 #undef DECLARE_CONCRETE_INSTRUCTION |
| 3527 | 3527 |
| 3528 } } // namespace v8::internal | 3528 } } // namespace v8::internal |
| 3529 | 3529 |
| 3530 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 3530 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |