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 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2353 const Runtime::Function* c_function, | 2353 const Runtime::Function* c_function, |
2354 int argument_count) { | 2354 int argument_count) { |
2355 return new(zone) HCallRuntime(context, name, c_function, argument_count); | 2355 return new(zone) HCallRuntime(context, name, c_function, argument_count); |
2356 } | 2356 } |
2357 | 2357 |
2358 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 2358 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
2359 | 2359 |
2360 HValue* context() { return OperandAt(0); } | 2360 HValue* context() { return OperandAt(0); } |
2361 const Runtime::Function* function() const { return c_function_; } | 2361 const Runtime::Function* function() const { return c_function_; } |
2362 Handle<String> name() const { return name_; } | 2362 Handle<String> name() const { return name_; } |
| 2363 SaveFPRegsMode save_doubles() const { return save_doubles_; } |
| 2364 void set_save_doubles(SaveFPRegsMode save_doubles) { |
| 2365 save_doubles_ = save_doubles; |
| 2366 } |
2363 | 2367 |
2364 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | 2368 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { |
2365 return Representation::Tagged(); | 2369 return Representation::Tagged(); |
2366 } | 2370 } |
2367 | 2371 |
2368 DECLARE_CONCRETE_INSTRUCTION(CallRuntime) | 2372 DECLARE_CONCRETE_INSTRUCTION(CallRuntime) |
2369 | 2373 |
2370 private: | 2374 private: |
2371 HCallRuntime(HValue* context, | 2375 HCallRuntime(HValue* context, |
2372 Handle<String> name, | 2376 Handle<String> name, |
2373 const Runtime::Function* c_function, | 2377 const Runtime::Function* c_function, |
2374 int argument_count) | 2378 int argument_count) |
2375 : HCall<1>(argument_count), c_function_(c_function), name_(name) { | 2379 : HCall<1>(argument_count), c_function_(c_function), name_(name), |
| 2380 save_doubles_(kDontSaveFPRegs) { |
2376 SetOperandAt(0, context); | 2381 SetOperandAt(0, context); |
2377 } | 2382 } |
2378 | 2383 |
2379 const Runtime::Function* c_function_; | 2384 const Runtime::Function* c_function_; |
2380 Handle<String> name_; | 2385 Handle<String> name_; |
| 2386 SaveFPRegsMode save_doubles_; |
2381 }; | 2387 }; |
2382 | 2388 |
2383 | 2389 |
2384 class HMapEnumLength V8_FINAL : public HUnaryOperation { | 2390 class HMapEnumLength V8_FINAL : public HUnaryOperation { |
2385 public: | 2391 public: |
2386 DECLARE_INSTRUCTION_FACTORY_P1(HMapEnumLength, HValue*); | 2392 DECLARE_INSTRUCTION_FACTORY_P1(HMapEnumLength, HValue*); |
2387 | 2393 |
2388 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | 2394 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { |
2389 return Representation::Tagged(); | 2395 return Representation::Tagged(); |
2390 } | 2396 } |
(...skipping 4643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7034 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7040 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7035 }; | 7041 }; |
7036 | 7042 |
7037 | 7043 |
7038 #undef DECLARE_INSTRUCTION | 7044 #undef DECLARE_INSTRUCTION |
7039 #undef DECLARE_CONCRETE_INSTRUCTION | 7045 #undef DECLARE_CONCRETE_INSTRUCTION |
7040 | 7046 |
7041 } } // namespace v8::internal | 7047 } } // namespace v8::internal |
7042 | 7048 |
7043 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7049 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |