Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(697)

Side by Side Diff: src/x64/lithium-x64.h

Issue 135593006: Optimize HWrapReceiver (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Syntax fixes Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 public: 545 public:
546 LWrapReceiver(LOperand* receiver, LOperand* function) { 546 LWrapReceiver(LOperand* receiver, LOperand* function) {
547 inputs_[0] = receiver; 547 inputs_[0] = receiver;
548 inputs_[1] = function; 548 inputs_[1] = function;
549 } 549 }
550 550
551 LOperand* receiver() { return inputs_[0]; } 551 LOperand* receiver() { return inputs_[0]; }
552 LOperand* function() { return inputs_[1]; } 552 LOperand* function() { return inputs_[1]; }
553 553
554 DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver") 554 DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver")
555 DECLARE_HYDROGEN_ACCESSOR(WrapReceiver)
555 }; 556 };
556 557
557 558
558 class LApplyArguments V8_FINAL : public LTemplateInstruction<1, 4, 0> { 559 class LApplyArguments V8_FINAL : public LTemplateInstruction<1, 4, 0> {
559 public: 560 public:
560 LApplyArguments(LOperand* function, 561 LApplyArguments(LOperand* function,
561 LOperand* receiver, 562 LOperand* receiver,
562 LOperand* length, 563 LOperand* length,
563 LOperand* elements) { 564 LOperand* elements) {
564 inputs_[0] = function; 565 inputs_[0] = function;
(...skipping 2085 matching lines...) Expand 10 before | Expand all | Expand 10 after
2650 2651
2651 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2652 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2652 }; 2653 };
2653 2654
2654 #undef DECLARE_HYDROGEN_ACCESSOR 2655 #undef DECLARE_HYDROGEN_ACCESSOR
2655 #undef DECLARE_CONCRETE_INSTRUCTION 2656 #undef DECLARE_CONCRETE_INSTRUCTION
2656 2657
2657 } } // namespace v8::int 2658 } } // namespace v8::int
2658 2659
2659 #endif // V8_X64_LITHIUM_X64_H_ 2660 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698