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

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

Issue 23143007: Revert "Use V8_FINAL and V8_OVERRIDE in various places, fixing bugs revealed by them." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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-gap-resolver-x64.h ('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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 V(TransitionElementsKind) \ 179 V(TransitionElementsKind) \
180 V(TrapAllocationMemento) \ 180 V(TrapAllocationMemento) \
181 V(Typeof) \ 181 V(Typeof) \
182 V(TypeofIsAndBranch) \ 182 V(TypeofIsAndBranch) \
183 V(Uint32ToDouble) \ 183 V(Uint32ToDouble) \
184 V(UnknownOSRValue) \ 184 V(UnknownOSRValue) \
185 V(ValueOf) \ 185 V(ValueOf) \
186 V(WrapReceiver) 186 V(WrapReceiver)
187 187
188 188
189 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ 189 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
190 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ 190 virtual Opcode opcode() const { return LInstruction::k##type; } \
191 return LInstruction::k##type; \ 191 virtual void CompileToNative(LCodeGen* generator); \
192 } \ 192 virtual const char* Mnemonic() const { return mnemonic; } \
193 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ 193 static L##type* cast(LInstruction* instr) { \
194 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ 194 ASSERT(instr->Is##type()); \
195 return mnemonic; \ 195 return reinterpret_cast<L##type*>(instr); \
196 } \
197 static L##type* cast(LInstruction* instr) { \
198 ASSERT(instr->Is##type()); \
199 return reinterpret_cast<L##type*>(instr); \
200 } 196 }
201 197
202 198
203 #define DECLARE_HYDROGEN_ACCESSOR(type) \ 199 #define DECLARE_HYDROGEN_ACCESSOR(type) \
204 H##type* hydrogen() const { \ 200 H##type* hydrogen() const { \
205 return H##type::cast(hydrogen_value()); \ 201 return H##type::cast(hydrogen_value()); \
206 } 202 }
207 203
208 204
209 class LInstruction : public ZoneObject { 205 class LInstruction: public ZoneObject {
210 public: 206 public:
211 LInstruction() 207 LInstruction()
212 : environment_(NULL), 208 : environment_(NULL),
213 hydrogen_value_(NULL), 209 hydrogen_value_(NULL),
214 bit_field_(IsCallBits::encode(false)) { 210 bit_field_(IsCallBits::encode(false)) {
215 set_position(RelocInfo::kNoPosition); 211 set_position(RelocInfo::kNoPosition);
216 } 212 }
217 213
218 virtual ~LInstruction() {} 214 virtual ~LInstruction() { }
219 215
220 virtual void CompileToNative(LCodeGen* generator) = 0; 216 virtual void CompileToNative(LCodeGen* generator) = 0;
221 virtual const char* Mnemonic() const = 0; 217 virtual const char* Mnemonic() const = 0;
222 virtual void PrintTo(StringStream* stream); 218 virtual void PrintTo(StringStream* stream);
223 virtual void PrintDataTo(StringStream* stream); 219 virtual void PrintDataTo(StringStream* stream);
224 virtual void PrintOutputOperandTo(StringStream* stream); 220 virtual void PrintOutputOperandTo(StringStream* stream);
225 221
226 enum Opcode { 222 enum Opcode {
227 // Declare a unique enum value for each instruction. 223 // Declare a unique enum value for each instruction.
228 #define DECLARE_OPCODE(type) k##type, 224 #define DECLARE_OPCODE(type) k##type,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 SetOncePointer<LPointerMap> pointer_map_; 303 SetOncePointer<LPointerMap> pointer_map_;
308 HValue* hydrogen_value_; 304 HValue* hydrogen_value_;
309 int bit_field_; 305 int bit_field_;
310 }; 306 };
311 307
312 308
313 // R = number of result operands (0 or 1). 309 // R = number of result operands (0 or 1).
314 // I = number of input operands. 310 // I = number of input operands.
315 // T = number of temporary operands. 311 // T = number of temporary operands.
316 template<int R, int I, int T> 312 template<int R, int I, int T>
317 class LTemplateInstruction : public LInstruction { 313 class LTemplateInstruction: public LInstruction {
318 public: 314 public:
319 // Allow 0 or 1 output operands. 315 // Allow 0 or 1 output operands.
320 STATIC_ASSERT(R == 0 || R == 1); 316 STATIC_ASSERT(R == 0 || R == 1);
321 virtual bool HasResult() const V8_FINAL V8_OVERRIDE { 317 virtual bool HasResult() const { return R != 0 && result() != NULL; }
322 return R != 0 && result() != NULL;
323 }
324 void set_result(LOperand* operand) { results_[0] = operand; } 318 void set_result(LOperand* operand) { results_[0] = operand; }
325 LOperand* result() const { return results_[0]; } 319 LOperand* result() const { return results_[0]; }
326 320
327 protected: 321 protected:
328 EmbeddedContainer<LOperand*, R> results_; 322 EmbeddedContainer<LOperand*, R> results_;
329 EmbeddedContainer<LOperand*, I> inputs_; 323 EmbeddedContainer<LOperand*, I> inputs_;
330 EmbeddedContainer<LOperand*, T> temps_; 324 EmbeddedContainer<LOperand*, T> temps_;
331 325
332 private: 326 private:
333 // Iterator support. 327 // Iterator support.
334 virtual int InputCount() V8_FINAL V8_OVERRIDE { return I; } 328 virtual int InputCount() { return I; }
335 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } 329 virtual LOperand* InputAt(int i) { return inputs_[i]; }
336 330
337 virtual int TempCount() V8_FINAL V8_OVERRIDE { return T; } 331 virtual int TempCount() { return T; }
338 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return temps_[i]; } 332 virtual LOperand* TempAt(int i) { return temps_[i]; }
339 }; 333 };
340 334
341 335
342 class LGap : public LTemplateInstruction<0, 0, 0> { 336 class LGap: public LTemplateInstruction<0, 0, 0> {
343 public: 337 public:
344 explicit LGap(HBasicBlock* block) 338 explicit LGap(HBasicBlock* block)
345 : block_(block) { 339 : block_(block) {
346 parallel_moves_[BEFORE] = NULL; 340 parallel_moves_[BEFORE] = NULL;
347 parallel_moves_[START] = NULL; 341 parallel_moves_[START] = NULL;
348 parallel_moves_[END] = NULL; 342 parallel_moves_[END] = NULL;
349 parallel_moves_[AFTER] = NULL; 343 parallel_moves_[AFTER] = NULL;
350 } 344 }
351 345
352 // Can't use the DECLARE-macro here because of sub-classes. 346 // Can't use the DECLARE-macro here because of sub-classes.
353 virtual bool IsGap() const V8_FINAL V8_OVERRIDE { return true; } 347 virtual bool IsGap() const { return true; }
354 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 348 virtual void PrintDataTo(StringStream* stream);
355 static LGap* cast(LInstruction* instr) { 349 static LGap* cast(LInstruction* instr) {
356 ASSERT(instr->IsGap()); 350 ASSERT(instr->IsGap());
357 return reinterpret_cast<LGap*>(instr); 351 return reinterpret_cast<LGap*>(instr);
358 } 352 }
359 353
360 bool IsRedundant() const; 354 bool IsRedundant() const;
361 355
362 HBasicBlock* block() const { return block_; } 356 HBasicBlock* block() const { return block_; }
363 357
364 enum InnerPosition { 358 enum InnerPosition {
(...skipping 16 matching lines...) Expand all
381 LParallelMove* GetParallelMove(InnerPosition pos) { 375 LParallelMove* GetParallelMove(InnerPosition pos) {
382 return parallel_moves_[pos]; 376 return parallel_moves_[pos];
383 } 377 }
384 378
385 private: 379 private:
386 LParallelMove* parallel_moves_[LAST_INNER_POSITION + 1]; 380 LParallelMove* parallel_moves_[LAST_INNER_POSITION + 1];
387 HBasicBlock* block_; 381 HBasicBlock* block_;
388 }; 382 };
389 383
390 384
391 class LInstructionGap V8_FINAL : public LGap { 385 class LInstructionGap: public LGap {
392 public: 386 public:
393 explicit LInstructionGap(HBasicBlock* block) : LGap(block) { } 387 explicit LInstructionGap(HBasicBlock* block) : LGap(block) { }
394 388
395 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE { 389 virtual bool HasInterestingComment(LCodeGen* gen) const {
396 return !IsRedundant(); 390 return !IsRedundant();
397 } 391 }
398 392
399 DECLARE_CONCRETE_INSTRUCTION(InstructionGap, "gap") 393 DECLARE_CONCRETE_INSTRUCTION(InstructionGap, "gap")
400 }; 394 };
401 395
402 396
403 class LGoto V8_FINAL : public LTemplateInstruction<0, 0, 0> { 397 class LGoto: public LTemplateInstruction<0, 0, 0> {
404 public: 398 public:
405 explicit LGoto(int block_id) : block_id_(block_id) { } 399 explicit LGoto(int block_id) : block_id_(block_id) { }
406 400
407 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE; 401 virtual bool HasInterestingComment(LCodeGen* gen) const;
408 DECLARE_CONCRETE_INSTRUCTION(Goto, "goto") 402 DECLARE_CONCRETE_INSTRUCTION(Goto, "goto")
409 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 403 virtual void PrintDataTo(StringStream* stream);
410 virtual bool IsControl() const V8_OVERRIDE { return true; } 404 virtual bool IsControl() const { return true; }
411 405
412 int block_id() const { return block_id_; } 406 int block_id() const { return block_id_; }
413 407
414 private: 408 private:
415 int block_id_; 409 int block_id_;
416 }; 410 };
417 411
418 412
419 class LLazyBailout V8_FINAL : public LTemplateInstruction<0, 0, 0> { 413 class LLazyBailout: public LTemplateInstruction<0, 0, 0> {
420 public: 414 public:
421 LLazyBailout() : gap_instructions_size_(0) { } 415 LLazyBailout() : gap_instructions_size_(0) { }
422 416
423 DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout") 417 DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout")
424 418
425 void set_gap_instructions_size(int gap_instructions_size) { 419 void set_gap_instructions_size(int gap_instructions_size) {
426 gap_instructions_size_ = gap_instructions_size; 420 gap_instructions_size_ = gap_instructions_size;
427 } 421 }
428 int gap_instructions_size() { return gap_instructions_size_; } 422 int gap_instructions_size() { return gap_instructions_size_; }
429 423
430 private: 424 private:
431 int gap_instructions_size_; 425 int gap_instructions_size_;
432 }; 426 };
433 427
434 428
435 class LDummyUse V8_FINAL : public LTemplateInstruction<1, 1, 0> { 429 class LDummyUse: public LTemplateInstruction<1, 1, 0> {
436 public: 430 public:
437 explicit LDummyUse(LOperand* value) { 431 explicit LDummyUse(LOperand* value) {
438 inputs_[0] = value; 432 inputs_[0] = value;
439 } 433 }
440 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use") 434 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use")
441 }; 435 };
442 436
443 437
444 class LDeoptimize V8_FINAL : public LTemplateInstruction<0, 0, 0> { 438 class LDeoptimize: public LTemplateInstruction<0, 0, 0> {
445 public: 439 public:
446 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize") 440 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize")
447 DECLARE_HYDROGEN_ACCESSOR(Deoptimize) 441 DECLARE_HYDROGEN_ACCESSOR(Deoptimize)
448 }; 442 };
449 443
450 444
451 class LLabel V8_FINAL : public LGap { 445 class LLabel: public LGap {
452 public: 446 public:
453 explicit LLabel(HBasicBlock* block) 447 explicit LLabel(HBasicBlock* block)
454 : LGap(block), replacement_(NULL) { } 448 : LGap(block), replacement_(NULL) { }
455 449
456 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE { 450 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
457 return false;
458 }
459 DECLARE_CONCRETE_INSTRUCTION(Label, "label") 451 DECLARE_CONCRETE_INSTRUCTION(Label, "label")
460 452
461 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 453 virtual void PrintDataTo(StringStream* stream);
462 454
463 int block_id() const { return block()->block_id(); } 455 int block_id() const { return block()->block_id(); }
464 bool is_loop_header() const { return block()->IsLoopHeader(); } 456 bool is_loop_header() const { return block()->IsLoopHeader(); }
465 bool is_osr_entry() const { return block()->is_osr_entry(); } 457 bool is_osr_entry() const { return block()->is_osr_entry(); }
466 Label* label() { return &label_; } 458 Label* label() { return &label_; }
467 LLabel* replacement() const { return replacement_; } 459 LLabel* replacement() const { return replacement_; }
468 void set_replacement(LLabel* label) { replacement_ = label; } 460 void set_replacement(LLabel* label) { replacement_ = label; }
469 bool HasReplacement() const { return replacement_ != NULL; } 461 bool HasReplacement() const { return replacement_ != NULL; }
470 462
471 private: 463 private:
472 Label label_; 464 Label label_;
473 LLabel* replacement_; 465 LLabel* replacement_;
474 }; 466 };
475 467
476 468
477 class LParameter V8_FINAL : public LTemplateInstruction<1, 0, 0> { 469 class LParameter: public LTemplateInstruction<1, 0, 0> {
478 public: 470 public:
479 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE { 471 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
480 return false;
481 }
482 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter") 472 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter")
483 }; 473 };
484 474
485 475
486 class LCallStub V8_FINAL : public LTemplateInstruction<1, 0, 0> { 476 class LCallStub: public LTemplateInstruction<1, 0, 0> {
487 public: 477 public:
488 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") 478 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub")
489 DECLARE_HYDROGEN_ACCESSOR(CallStub) 479 DECLARE_HYDROGEN_ACCESSOR(CallStub)
490 480
491 TranscendentalCache::Type transcendental_type() { 481 TranscendentalCache::Type transcendental_type() {
492 return hydrogen()->transcendental_type(); 482 return hydrogen()->transcendental_type();
493 } 483 }
494 }; 484 };
495 485
496 486
497 class LUnknownOSRValue V8_FINAL : public LTemplateInstruction<1, 0, 0> { 487 class LUnknownOSRValue: public LTemplateInstruction<1, 0, 0> {
498 public: 488 public:
499 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE { 489 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
500 return false;
501 }
502 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") 490 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value")
503 }; 491 };
504 492
505 493
506 template<int I, int T> 494 template<int I, int T>
507 class LControlInstruction : public LTemplateInstruction<0, I, T> { 495 class LControlInstruction: public LTemplateInstruction<0, I, T> {
508 public: 496 public:
509 LControlInstruction() : false_label_(NULL), true_label_(NULL) { } 497 LControlInstruction() : false_label_(NULL), true_label_(NULL) { }
510 498
511 virtual bool IsControl() const V8_FINAL V8_OVERRIDE { return true; } 499 virtual bool IsControl() const { return true; }
512 500
513 int SuccessorCount() { return hydrogen()->SuccessorCount(); } 501 int SuccessorCount() { return hydrogen()->SuccessorCount(); }
514 HBasicBlock* SuccessorAt(int i) { return hydrogen()->SuccessorAt(i); } 502 HBasicBlock* SuccessorAt(int i) { return hydrogen()->SuccessorAt(i); }
515 503
516 int TrueDestination(LChunk* chunk) { 504 int TrueDestination(LChunk* chunk) {
517 return chunk->LookupDestination(true_block_id()); 505 return chunk->LookupDestination(true_block_id());
518 } 506 }
519 int FalseDestination(LChunk* chunk) { 507 int FalseDestination(LChunk* chunk) {
520 return chunk->LookupDestination(false_block_id()); 508 return chunk->LookupDestination(false_block_id());
521 } 509 }
(...skipping 18 matching lines...) Expand all
540 private: 528 private:
541 HControlInstruction* hydrogen() { 529 HControlInstruction* hydrogen() {
542 return HControlInstruction::cast(this->hydrogen_value()); 530 return HControlInstruction::cast(this->hydrogen_value());
543 } 531 }
544 532
545 Label* false_label_; 533 Label* false_label_;
546 Label* true_label_; 534 Label* true_label_;
547 }; 535 };
548 536
549 537
550 class LWrapReceiver V8_FINAL : public LTemplateInstruction<1, 2, 0> { 538 class LWrapReceiver: public LTemplateInstruction<1, 2, 0> {
551 public: 539 public:
552 LWrapReceiver(LOperand* receiver, LOperand* function) { 540 LWrapReceiver(LOperand* receiver, LOperand* function) {
553 inputs_[0] = receiver; 541 inputs_[0] = receiver;
554 inputs_[1] = function; 542 inputs_[1] = function;
555 } 543 }
556 544
557 LOperand* receiver() { return inputs_[0]; } 545 LOperand* receiver() { return inputs_[0]; }
558 LOperand* function() { return inputs_[1]; } 546 LOperand* function() { return inputs_[1]; }
559 547
560 DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver") 548 DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver")
561 }; 549 };
562 550
563 551
564 class LApplyArguments V8_FINAL : public LTemplateInstruction<1, 4, 0> { 552 class LApplyArguments: public LTemplateInstruction<1, 4, 0> {
565 public: 553 public:
566 LApplyArguments(LOperand* function, 554 LApplyArguments(LOperand* function,
567 LOperand* receiver, 555 LOperand* receiver,
568 LOperand* length, 556 LOperand* length,
569 LOperand* elements) { 557 LOperand* elements) {
570 inputs_[0] = function; 558 inputs_[0] = function;
571 inputs_[1] = receiver; 559 inputs_[1] = receiver;
572 inputs_[2] = length; 560 inputs_[2] = length;
573 inputs_[3] = elements; 561 inputs_[3] = elements;
574 } 562 }
575 563
576 LOperand* function() { return inputs_[0]; } 564 LOperand* function() { return inputs_[0]; }
577 LOperand* receiver() { return inputs_[1]; } 565 LOperand* receiver() { return inputs_[1]; }
578 LOperand* length() { return inputs_[2]; } 566 LOperand* length() { return inputs_[2]; }
579 LOperand* elements() { return inputs_[3]; } 567 LOperand* elements() { return inputs_[3]; }
580 568
581 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments") 569 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments")
582 }; 570 };
583 571
584 572
585 class LAccessArgumentsAt V8_FINAL : public LTemplateInstruction<1, 3, 0> { 573 class LAccessArgumentsAt: public LTemplateInstruction<1, 3, 0> {
586 public: 574 public:
587 LAccessArgumentsAt(LOperand* arguments, LOperand* length, LOperand* index) { 575 LAccessArgumentsAt(LOperand* arguments, LOperand* length, LOperand* index) {
588 inputs_[0] = arguments; 576 inputs_[0] = arguments;
589 inputs_[1] = length; 577 inputs_[1] = length;
590 inputs_[2] = index; 578 inputs_[2] = index;
591 } 579 }
592 580
593 LOperand* arguments() { return inputs_[0]; } 581 LOperand* arguments() { return inputs_[0]; }
594 LOperand* length() { return inputs_[1]; } 582 LOperand* length() { return inputs_[1]; }
595 LOperand* index() { return inputs_[2]; } 583 LOperand* index() { return inputs_[2]; }
596 584
597 DECLARE_CONCRETE_INSTRUCTION(AccessArgumentsAt, "access-arguments-at") 585 DECLARE_CONCRETE_INSTRUCTION(AccessArgumentsAt, "access-arguments-at")
598 586
599 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 587 virtual void PrintDataTo(StringStream* stream);
600 }; 588 };
601 589
602 590
603 class LArgumentsLength V8_FINAL : public LTemplateInstruction<1, 1, 0> { 591 class LArgumentsLength: public LTemplateInstruction<1, 1, 0> {
604 public: 592 public:
605 explicit LArgumentsLength(LOperand* elements) { 593 explicit LArgumentsLength(LOperand* elements) {
606 inputs_[0] = elements; 594 inputs_[0] = elements;
607 } 595 }
608 596
609 LOperand* elements() { return inputs_[0]; } 597 LOperand* elements() { return inputs_[0]; }
610 598
611 DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments-length") 599 DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments-length")
612 }; 600 };
613 601
614 602
615 class LArgumentsElements V8_FINAL : public LTemplateInstruction<1, 0, 0> { 603 class LArgumentsElements: public LTemplateInstruction<1, 0, 0> {
616 public: 604 public:
617 DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements") 605 DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements")
618 DECLARE_HYDROGEN_ACCESSOR(ArgumentsElements) 606 DECLARE_HYDROGEN_ACCESSOR(ArgumentsElements)
619 }; 607 };
620 608
621 609
622 class LModI V8_FINAL : public LTemplateInstruction<1, 2, 1> { 610 class LModI: public LTemplateInstruction<1, 2, 1> {
623 public: 611 public:
624 LModI(LOperand* left, LOperand* right, LOperand* temp) { 612 LModI(LOperand* left, LOperand* right, LOperand* temp) {
625 inputs_[0] = left; 613 inputs_[0] = left;
626 inputs_[1] = right; 614 inputs_[1] = right;
627 temps_[0] = temp; 615 temps_[0] = temp;
628 } 616 }
629 617
630 LOperand* left() { return inputs_[0]; } 618 LOperand* left() { return inputs_[0]; }
631 LOperand* right() { return inputs_[1]; } 619 LOperand* right() { return inputs_[1]; }
632 LOperand* temp() { return temps_[0]; } 620 LOperand* temp() { return temps_[0]; }
633 621
634 DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i") 622 DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i")
635 DECLARE_HYDROGEN_ACCESSOR(Mod) 623 DECLARE_HYDROGEN_ACCESSOR(Mod)
636 }; 624 };
637 625
638 626
639 class LDivI V8_FINAL : public LTemplateInstruction<1, 2, 1> { 627 class LDivI: public LTemplateInstruction<1, 2, 1> {
640 public: 628 public:
641 LDivI(LOperand* left, LOperand* right, LOperand* temp) { 629 LDivI(LOperand* left, LOperand* right, LOperand* temp) {
642 inputs_[0] = left; 630 inputs_[0] = left;
643 inputs_[1] = right; 631 inputs_[1] = right;
644 temps_[0] = temp; 632 temps_[0] = temp;
645 } 633 }
646 634
647 LOperand* left() { return inputs_[0]; } 635 LOperand* left() { return inputs_[0]; }
648 LOperand* right() { return inputs_[1]; } 636 LOperand* right() { return inputs_[1]; }
649 LOperand* temp() { return temps_[0]; } 637 LOperand* temp() { return temps_[0]; }
650 638
651 bool is_flooring() { return hydrogen_value()->IsMathFloorOfDiv(); } 639 bool is_flooring() { return hydrogen_value()->IsMathFloorOfDiv(); }
652 640
653 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i") 641 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i")
654 DECLARE_HYDROGEN_ACCESSOR(Div) 642 DECLARE_HYDROGEN_ACCESSOR(Div)
655 }; 643 };
656 644
657 645
658 class LMathFloorOfDiv V8_FINAL : public LTemplateInstruction<1, 2, 1> { 646 class LMathFloorOfDiv: public LTemplateInstruction<1, 2, 1> {
659 public: 647 public:
660 LMathFloorOfDiv(LOperand* left, 648 LMathFloorOfDiv(LOperand* left,
661 LOperand* right, 649 LOperand* right,
662 LOperand* temp = NULL) { 650 LOperand* temp = NULL) {
663 inputs_[0] = left; 651 inputs_[0] = left;
664 inputs_[1] = right; 652 inputs_[1] = right;
665 temps_[0] = temp; 653 temps_[0] = temp;
666 } 654 }
667 655
668 LOperand* left() { return inputs_[0]; } 656 LOperand* left() { return inputs_[0]; }
669 LOperand* right() { return inputs_[1]; } 657 LOperand* right() { return inputs_[1]; }
670 LOperand* temp() { return temps_[0]; } 658 LOperand* temp() { return temps_[0]; }
671 659
672 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div") 660 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div")
673 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv) 661 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv)
674 }; 662 };
675 663
676 664
677 class LMulI V8_FINAL : public LTemplateInstruction<1, 2, 0> { 665 class LMulI: public LTemplateInstruction<1, 2, 0> {
678 public: 666 public:
679 LMulI(LOperand* left, LOperand* right) { 667 LMulI(LOperand* left, LOperand* right) {
680 inputs_[0] = left; 668 inputs_[0] = left;
681 inputs_[1] = right; 669 inputs_[1] = right;
682 } 670 }
683 671
684 LOperand* left() { return inputs_[0]; } 672 LOperand* left() { return inputs_[0]; }
685 LOperand* right() { return inputs_[1]; } 673 LOperand* right() { return inputs_[1]; }
686 674
687 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") 675 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i")
688 DECLARE_HYDROGEN_ACCESSOR(Mul) 676 DECLARE_HYDROGEN_ACCESSOR(Mul)
689 }; 677 };
690 678
691 679
692 class LCompareNumericAndBranch V8_FINAL : public LControlInstruction<2, 0> { 680 class LCompareNumericAndBranch: public LControlInstruction<2, 0> {
693 public: 681 public:
694 LCompareNumericAndBranch(LOperand* left, LOperand* right) { 682 LCompareNumericAndBranch(LOperand* left, LOperand* right) {
695 inputs_[0] = left; 683 inputs_[0] = left;
696 inputs_[1] = right; 684 inputs_[1] = right;
697 } 685 }
698 686
699 LOperand* left() { return inputs_[0]; } 687 LOperand* left() { return inputs_[0]; }
700 LOperand* right() { return inputs_[1]; } 688 LOperand* right() { return inputs_[1]; }
701 689
702 DECLARE_CONCRETE_INSTRUCTION(CompareNumericAndBranch, 690 DECLARE_CONCRETE_INSTRUCTION(CompareNumericAndBranch,
703 "compare-numeric-and-branch") 691 "compare-numeric-and-branch")
704 DECLARE_HYDROGEN_ACCESSOR(CompareNumericAndBranch) 692 DECLARE_HYDROGEN_ACCESSOR(CompareNumericAndBranch)
705 693
706 Token::Value op() const { return hydrogen()->token(); } 694 Token::Value op() const { return hydrogen()->token(); }
707 bool is_double() const { 695 bool is_double() const {
708 return hydrogen()->representation().IsDouble(); 696 return hydrogen()->representation().IsDouble();
709 } 697 }
710 698
711 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 699 virtual void PrintDataTo(StringStream* stream);
712 }; 700 };
713 701
714 702
715 class LMathFloor V8_FINAL : public LTemplateInstruction<1, 1, 0> { 703 class LMathFloor: public LTemplateInstruction<1, 1, 0> {
716 public: 704 public:
717 explicit LMathFloor(LOperand* value) { 705 explicit LMathFloor(LOperand* value) {
718 inputs_[0] = value; 706 inputs_[0] = value;
719 } 707 }
720 708
721 LOperand* value() { return inputs_[0]; } 709 LOperand* value() { return inputs_[0]; }
722 710
723 DECLARE_CONCRETE_INSTRUCTION(MathFloor, "math-floor") 711 DECLARE_CONCRETE_INSTRUCTION(MathFloor, "math-floor")
724 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) 712 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation)
725 }; 713 };
726 714
727 715
728 class LMathRound V8_FINAL : public LTemplateInstruction<1, 1, 0> { 716 class LMathRound: public LTemplateInstruction<1, 1, 0> {
729 public: 717 public:
730 explicit LMathRound(LOperand* value) { 718 explicit LMathRound(LOperand* value) {
731 inputs_[0] = value; 719 inputs_[0] = value;
732 } 720 }
733 721
734 LOperand* value() { return inputs_[0]; } 722 LOperand* value() { return inputs_[0]; }
735 723
736 DECLARE_CONCRETE_INSTRUCTION(MathRound, "math-round") 724 DECLARE_CONCRETE_INSTRUCTION(MathRound, "math-round")
737 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) 725 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation)
738 }; 726 };
739 727
740 728
741 class LMathAbs V8_FINAL : public LTemplateInstruction<1, 1, 0> { 729 class LMathAbs: public LTemplateInstruction<1, 1, 0> {
742 public: 730 public:
743 explicit LMathAbs(LOperand* value) { 731 explicit LMathAbs(LOperand* value) {
744 inputs_[0] = value; 732 inputs_[0] = value;
745 } 733 }
746 734
747 LOperand* value() { return inputs_[0]; } 735 LOperand* value() { return inputs_[0]; }
748 736
749 DECLARE_CONCRETE_INSTRUCTION(MathAbs, "math-abs") 737 DECLARE_CONCRETE_INSTRUCTION(MathAbs, "math-abs")
750 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) 738 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation)
751 }; 739 };
752 740
753 741
754 class LMathLog V8_FINAL : public LTemplateInstruction<1, 1, 0> { 742 class LMathLog: public LTemplateInstruction<1, 1, 0> {
755 public: 743 public:
756 explicit LMathLog(LOperand* value) { 744 explicit LMathLog(LOperand* value) {
757 inputs_[0] = value; 745 inputs_[0] = value;
758 } 746 }
759 747
760 LOperand* value() { return inputs_[0]; } 748 LOperand* value() { return inputs_[0]; }
761 749
762 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log") 750 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log")
763 }; 751 };
764 752
765 753
766 class LMathSin V8_FINAL : public LTemplateInstruction<1, 1, 0> { 754 class LMathSin: public LTemplateInstruction<1, 1, 0> {
767 public: 755 public:
768 explicit LMathSin(LOperand* value) { 756 explicit LMathSin(LOperand* value) {
769 inputs_[0] = value; 757 inputs_[0] = value;
770 } 758 }
771 759
772 LOperand* value() { return inputs_[0]; } 760 LOperand* value() { return inputs_[0]; }
773 761
774 DECLARE_CONCRETE_INSTRUCTION(MathSin, "math-sin") 762 DECLARE_CONCRETE_INSTRUCTION(MathSin, "math-sin")
775 }; 763 };
776 764
777 765
778 class LMathCos V8_FINAL : public LTemplateInstruction<1, 1, 0> { 766 class LMathCos: public LTemplateInstruction<1, 1, 0> {
779 public: 767 public:
780 explicit LMathCos(LOperand* value) { 768 explicit LMathCos(LOperand* value) {
781 inputs_[0] = value; 769 inputs_[0] = value;
782 } 770 }
783 771
784 LOperand* value() { return inputs_[0]; } 772 LOperand* value() { return inputs_[0]; }
785 773
786 DECLARE_CONCRETE_INSTRUCTION(MathCos, "math-cos") 774 DECLARE_CONCRETE_INSTRUCTION(MathCos, "math-cos")
787 }; 775 };
788 776
789 777
790 class LMathTan V8_FINAL : public LTemplateInstruction<1, 1, 0> { 778 class LMathTan: public LTemplateInstruction<1, 1, 0> {
791 public: 779 public:
792 explicit LMathTan(LOperand* value) { 780 explicit LMathTan(LOperand* value) {
793 inputs_[0] = value; 781 inputs_[0] = value;
794 } 782 }
795 783
796 LOperand* value() { return inputs_[0]; } 784 LOperand* value() { return inputs_[0]; }
797 785
798 DECLARE_CONCRETE_INSTRUCTION(MathTan, "math-tan") 786 DECLARE_CONCRETE_INSTRUCTION(MathTan, "math-tan")
799 }; 787 };
800 788
801 789
802 class LMathExp V8_FINAL : public LTemplateInstruction<1, 1, 2> { 790 class LMathExp: public LTemplateInstruction<1, 1, 2> {
803 public: 791 public:
804 LMathExp(LOperand* value, LOperand* temp1, LOperand* temp2) { 792 LMathExp(LOperand* value, LOperand* temp1, LOperand* temp2) {
805 inputs_[0] = value; 793 inputs_[0] = value;
806 temps_[0] = temp1; 794 temps_[0] = temp1;
807 temps_[1] = temp2; 795 temps_[1] = temp2;
808 ExternalReference::InitializeMathExpData(); 796 ExternalReference::InitializeMathExpData();
809 } 797 }
810 798
811 LOperand* value() { return inputs_[0]; } 799 LOperand* value() { return inputs_[0]; }
812 LOperand* temp1() { return temps_[0]; } 800 LOperand* temp1() { return temps_[0]; }
813 LOperand* temp2() { return temps_[1]; } 801 LOperand* temp2() { return temps_[1]; }
814 802
815 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") 803 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp")
816 }; 804 };
817 805
818 806
819 class LMathSqrt V8_FINAL : public LTemplateInstruction<1, 1, 0> { 807 class LMathSqrt: public LTemplateInstruction<1, 1, 0> {
820 public: 808 public:
821 explicit LMathSqrt(LOperand* value) { 809 explicit LMathSqrt(LOperand* value) {
822 inputs_[0] = value; 810 inputs_[0] = value;
823 } 811 }
824 812
825 LOperand* value() { return inputs_[0]; } 813 LOperand* value() { return inputs_[0]; }
826 814
827 DECLARE_CONCRETE_INSTRUCTION(MathSqrt, "math-sqrt") 815 DECLARE_CONCRETE_INSTRUCTION(MathSqrt, "math-sqrt")
828 }; 816 };
829 817
830 818
831 class LMathPowHalf V8_FINAL : public LTemplateInstruction<1, 1, 0> { 819 class LMathPowHalf: public LTemplateInstruction<1, 1, 0> {
832 public: 820 public:
833 explicit LMathPowHalf(LOperand* value) { 821 explicit LMathPowHalf(LOperand* value) {
834 inputs_[0] = value; 822 inputs_[0] = value;
835 } 823 }
836 824
837 LOperand* value() { return inputs_[0]; } 825 LOperand* value() { return inputs_[0]; }
838 826
839 DECLARE_CONCRETE_INSTRUCTION(MathPowHalf, "math-pow-half") 827 DECLARE_CONCRETE_INSTRUCTION(MathPowHalf, "math-pow-half")
840 }; 828 };
841 829
842 830
843 class LCmpObjectEqAndBranch V8_FINAL : public LControlInstruction<2, 0> { 831 class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> {
844 public: 832 public:
845 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) { 833 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) {
846 inputs_[0] = left; 834 inputs_[0] = left;
847 inputs_[1] = right; 835 inputs_[1] = right;
848 } 836 }
849 837
850 LOperand* left() { return inputs_[0]; } 838 LOperand* left() { return inputs_[0]; }
851 LOperand* right() { return inputs_[1]; } 839 LOperand* right() { return inputs_[1]; }
852 840
853 DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch, "cmp-object-eq-and-branch") 841 DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch, "cmp-object-eq-and-branch")
854 }; 842 };
855 843
856 844
857 class LCmpHoleAndBranch V8_FINAL : public LControlInstruction<1, 0> { 845 class LCmpHoleAndBranch: public LControlInstruction<1, 0> {
858 public: 846 public:
859 explicit LCmpHoleAndBranch(LOperand* object) { 847 explicit LCmpHoleAndBranch(LOperand* object) {
860 inputs_[0] = object; 848 inputs_[0] = object;
861 } 849 }
862 850
863 LOperand* object() { return inputs_[0]; } 851 LOperand* object() { return inputs_[0]; }
864 852
865 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch") 853 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch")
866 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch) 854 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch)
867 }; 855 };
868 856
869 857
870 class LIsObjectAndBranch V8_FINAL : public LControlInstruction<1, 0> { 858 class LIsObjectAndBranch: public LControlInstruction<1, 0> {
871 public: 859 public:
872 explicit LIsObjectAndBranch(LOperand* value) { 860 explicit LIsObjectAndBranch(LOperand* value) {
873 inputs_[0] = value; 861 inputs_[0] = value;
874 } 862 }
875 863
876 LOperand* value() { return inputs_[0]; } 864 LOperand* value() { return inputs_[0]; }
877 865
878 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 866 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
879 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) 867 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
880 868
881 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 869 virtual void PrintDataTo(StringStream* stream);
882 }; 870 };
883 871
884 872
885 class LIsNumberAndBranch V8_FINAL : public LControlInstruction<1, 0> { 873 class LIsNumberAndBranch: public LControlInstruction<1, 0> {
886 public: 874 public:
887 explicit LIsNumberAndBranch(LOperand* value) { 875 explicit LIsNumberAndBranch(LOperand* value) {
888 inputs_[0] = value; 876 inputs_[0] = value;
889 } 877 }
890 878
891 LOperand* value() { return inputs_[0]; } 879 LOperand* value() { return inputs_[0]; }
892 880
893 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch") 881 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch")
894 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch) 882 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch)
895 }; 883 };
896 884
897 885
898 class LIsStringAndBranch V8_FINAL : public LControlInstruction<1, 1> { 886 class LIsStringAndBranch: public LControlInstruction<1, 1> {
899 public: 887 public:
900 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { 888 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) {
901 inputs_[0] = value; 889 inputs_[0] = value;
902 temps_[0] = temp; 890 temps_[0] = temp;
903 } 891 }
904 892
905 LOperand* value() { return inputs_[0]; } 893 LOperand* value() { return inputs_[0]; }
906 LOperand* temp() { return temps_[0]; } 894 LOperand* temp() { return temps_[0]; }
907 895
908 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch") 896 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch")
909 DECLARE_HYDROGEN_ACCESSOR(IsStringAndBranch) 897 DECLARE_HYDROGEN_ACCESSOR(IsStringAndBranch)
910 898
911 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 899 virtual void PrintDataTo(StringStream* stream);
912 }; 900 };
913 901
914 902
915 class LIsSmiAndBranch V8_FINAL : public LControlInstruction<1, 0> { 903 class LIsSmiAndBranch: public LControlInstruction<1, 0> {
916 public: 904 public:
917 explicit LIsSmiAndBranch(LOperand* value) { 905 explicit LIsSmiAndBranch(LOperand* value) {
918 inputs_[0] = value; 906 inputs_[0] = value;
919 } 907 }
920 908
921 LOperand* value() { return inputs_[0]; } 909 LOperand* value() { return inputs_[0]; }
922 910
923 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") 911 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch")
924 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch) 912 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch)
925 913
926 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 914 virtual void PrintDataTo(StringStream* stream);
927 }; 915 };
928 916
929 917
930 class LIsUndetectableAndBranch V8_FINAL : public LControlInstruction<1, 1> { 918 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> {
931 public: 919 public:
932 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { 920 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) {
933 inputs_[0] = value; 921 inputs_[0] = value;
934 temps_[0] = temp; 922 temps_[0] = temp;
935 } 923 }
936 924
937 LOperand* value() { return inputs_[0]; } 925 LOperand* value() { return inputs_[0]; }
938 LOperand* temp() { return temps_[0]; } 926 LOperand* temp() { return temps_[0]; }
939 927
940 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, 928 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch,
941 "is-undetectable-and-branch") 929 "is-undetectable-and-branch")
942 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch) 930 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch)
943 931
944 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 932 virtual void PrintDataTo(StringStream* stream);
945 }; 933 };
946 934
947 935
948 class LStringCompareAndBranch V8_FINAL : public LControlInstruction<2, 0> { 936 class LStringCompareAndBranch: public LControlInstruction<2, 0> {
949 public: 937 public:
950 explicit LStringCompareAndBranch(LOperand* left, LOperand* right) { 938 explicit LStringCompareAndBranch(LOperand* left, LOperand* right) {
951 inputs_[0] = left; 939 inputs_[0] = left;
952 inputs_[1] = right; 940 inputs_[1] = right;
953 } 941 }
954 942
955 LOperand* left() { return inputs_[0]; } 943 LOperand* left() { return inputs_[0]; }
956 LOperand* right() { return inputs_[1]; } 944 LOperand* right() { return inputs_[1]; }
957 945
958 DECLARE_CONCRETE_INSTRUCTION(StringCompareAndBranch, 946 DECLARE_CONCRETE_INSTRUCTION(StringCompareAndBranch,
959 "string-compare-and-branch") 947 "string-compare-and-branch")
960 DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch) 948 DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch)
961 949
962 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 950 virtual void PrintDataTo(StringStream* stream);
963 951
964 Token::Value op() const { return hydrogen()->token(); } 952 Token::Value op() const { return hydrogen()->token(); }
965 }; 953 };
966 954
967 955
968 class LHasInstanceTypeAndBranch V8_FINAL : public LControlInstruction<1, 0> { 956 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> {
969 public: 957 public:
970 explicit LHasInstanceTypeAndBranch(LOperand* value) { 958 explicit LHasInstanceTypeAndBranch(LOperand* value) {
971 inputs_[0] = value; 959 inputs_[0] = value;
972 } 960 }
973 961
974 LOperand* value() { return inputs_[0]; } 962 LOperand* value() { return inputs_[0]; }
975 963
976 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, 964 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
977 "has-instance-type-and-branch") 965 "has-instance-type-and-branch")
978 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) 966 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch)
979 967
980 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 968 virtual void PrintDataTo(StringStream* stream);
981 }; 969 };
982 970
983 971
984 class LGetCachedArrayIndex V8_FINAL : public LTemplateInstruction<1, 1, 0> { 972 class LGetCachedArrayIndex: public LTemplateInstruction<1, 1, 0> {
985 public: 973 public:
986 explicit LGetCachedArrayIndex(LOperand* value) { 974 explicit LGetCachedArrayIndex(LOperand* value) {
987 inputs_[0] = value; 975 inputs_[0] = value;
988 } 976 }
989 977
990 LOperand* value() { return inputs_[0]; } 978 LOperand* value() { return inputs_[0]; }
991 979
992 DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get-cached-array-index") 980 DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get-cached-array-index")
993 DECLARE_HYDROGEN_ACCESSOR(GetCachedArrayIndex) 981 DECLARE_HYDROGEN_ACCESSOR(GetCachedArrayIndex)
994 }; 982 };
995 983
996 984
997 class LHasCachedArrayIndexAndBranch V8_FINAL 985 class LHasCachedArrayIndexAndBranch: public LControlInstruction<1, 0> {
998 : public LControlInstruction<1, 0> {
999 public: 986 public:
1000 explicit LHasCachedArrayIndexAndBranch(LOperand* value) { 987 explicit LHasCachedArrayIndexAndBranch(LOperand* value) {
1001 inputs_[0] = value; 988 inputs_[0] = value;
1002 } 989 }
1003 990
1004 LOperand* value() { return inputs_[0]; } 991 LOperand* value() { return inputs_[0]; }
1005 992
1006 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch, 993 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch,
1007 "has-cached-array-index-and-branch") 994 "has-cached-array-index-and-branch")
1008 DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndexAndBranch) 995 DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndexAndBranch)
1009 996
1010 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 997 virtual void PrintDataTo(StringStream* stream);
1011 }; 998 };
1012 999
1013 1000
1014 class LClassOfTestAndBranch V8_FINAL : public LControlInstruction<1, 2> { 1001 class LClassOfTestAndBranch: public LControlInstruction<1, 2> {
1015 public: 1002 public:
1016 LClassOfTestAndBranch(LOperand* value, LOperand* temp, LOperand* temp2) { 1003 LClassOfTestAndBranch(LOperand* value, LOperand* temp, LOperand* temp2) {
1017 inputs_[0] = value; 1004 inputs_[0] = value;
1018 temps_[0] = temp; 1005 temps_[0] = temp;
1019 temps_[1] = temp2; 1006 temps_[1] = temp2;
1020 } 1007 }
1021 1008
1022 LOperand* value() { return inputs_[0]; } 1009 LOperand* value() { return inputs_[0]; }
1023 LOperand* temp() { return temps_[0]; } 1010 LOperand* temp() { return temps_[0]; }
1024 LOperand* temp2() { return temps_[1]; } 1011 LOperand* temp2() { return temps_[1]; }
1025 1012
1026 DECLARE_CONCRETE_INSTRUCTION(ClassOfTestAndBranch, 1013 DECLARE_CONCRETE_INSTRUCTION(ClassOfTestAndBranch,
1027 "class-of-test-and-branch") 1014 "class-of-test-and-branch")
1028 DECLARE_HYDROGEN_ACCESSOR(ClassOfTestAndBranch) 1015 DECLARE_HYDROGEN_ACCESSOR(ClassOfTestAndBranch)
1029 1016
1030 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1017 virtual void PrintDataTo(StringStream* stream);
1031 }; 1018 };
1032 1019
1033 1020
1034 class LCmpT V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1021 class LCmpT: public LTemplateInstruction<1, 2, 0> {
1035 public: 1022 public:
1036 LCmpT(LOperand* left, LOperand* right) { 1023 LCmpT(LOperand* left, LOperand* right) {
1037 inputs_[0] = left; 1024 inputs_[0] = left;
1038 inputs_[1] = right; 1025 inputs_[1] = right;
1039 } 1026 }
1040 1027
1041 LOperand* left() { return inputs_[0]; } 1028 LOperand* left() { return inputs_[0]; }
1042 LOperand* right() { return inputs_[1]; } 1029 LOperand* right() { return inputs_[1]; }
1043 1030
1044 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") 1031 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
1045 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) 1032 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric)
1046 1033
1047 Token::Value op() const { return hydrogen()->token(); } 1034 Token::Value op() const { return hydrogen()->token(); }
1048 }; 1035 };
1049 1036
1050 1037
1051 class LInstanceOf V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1038 class LInstanceOf: public LTemplateInstruction<1, 2, 0> {
1052 public: 1039 public:
1053 LInstanceOf(LOperand* left, LOperand* right) { 1040 LInstanceOf(LOperand* left, LOperand* right) {
1054 inputs_[0] = left; 1041 inputs_[0] = left;
1055 inputs_[1] = right; 1042 inputs_[1] = right;
1056 } 1043 }
1057 1044
1058 LOperand* left() { return inputs_[0]; } 1045 LOperand* left() { return inputs_[0]; }
1059 LOperand* right() { return inputs_[1]; } 1046 LOperand* right() { return inputs_[1]; }
1060 1047
1061 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of") 1048 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of")
1062 }; 1049 };
1063 1050
1064 1051
1065 class LInstanceOfKnownGlobal V8_FINAL : public LTemplateInstruction<1, 1, 1> { 1052 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> {
1066 public: 1053 public:
1067 LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) { 1054 LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) {
1068 inputs_[0] = value; 1055 inputs_[0] = value;
1069 temps_[0] = temp; 1056 temps_[0] = temp;
1070 } 1057 }
1071 1058
1072 LOperand* value() { return inputs_[0]; } 1059 LOperand* value() { return inputs_[0]; }
1073 LOperand* temp() { return temps_[0]; } 1060 LOperand* temp() { return temps_[0]; }
1074 1061
1075 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, 1062 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal,
1076 "instance-of-known-global") 1063 "instance-of-known-global")
1077 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) 1064 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal)
1078 1065
1079 Handle<JSFunction> function() const { return hydrogen()->function(); } 1066 Handle<JSFunction> function() const { return hydrogen()->function(); }
1080 LEnvironment* GetDeferredLazyDeoptimizationEnvironment() { 1067 LEnvironment* GetDeferredLazyDeoptimizationEnvironment() {
1081 return lazy_deopt_env_; 1068 return lazy_deopt_env_;
1082 } 1069 }
1083 virtual void SetDeferredLazyDeoptimizationEnvironment( 1070 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) {
1084 LEnvironment* env) V8_OVERRIDE {
1085 lazy_deopt_env_ = env; 1071 lazy_deopt_env_ = env;
1086 } 1072 }
1087 1073
1088 private: 1074 private:
1089 LEnvironment* lazy_deopt_env_; 1075 LEnvironment* lazy_deopt_env_;
1090 }; 1076 };
1091 1077
1092 1078
1093 class LInstanceSize V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1079 class LInstanceSize: public LTemplateInstruction<1, 1, 0> {
1094 public: 1080 public:
1095 explicit LInstanceSize(LOperand* object) { 1081 explicit LInstanceSize(LOperand* object) {
1096 inputs_[0] = object; 1082 inputs_[0] = object;
1097 } 1083 }
1098 1084
1099 LOperand* object() { return inputs_[0]; } 1085 LOperand* object() { return inputs_[0]; }
1100 1086
1101 DECLARE_CONCRETE_INSTRUCTION(InstanceSize, "instance-size") 1087 DECLARE_CONCRETE_INSTRUCTION(InstanceSize, "instance-size")
1102 DECLARE_HYDROGEN_ACCESSOR(InstanceSize) 1088 DECLARE_HYDROGEN_ACCESSOR(InstanceSize)
1103 }; 1089 };
1104 1090
1105 1091
1106 class LBoundsCheck V8_FINAL : public LTemplateInstruction<0, 2, 0> { 1092 class LBoundsCheck: public LTemplateInstruction<0, 2, 0> {
1107 public: 1093 public:
1108 LBoundsCheck(LOperand* index, LOperand* length) { 1094 LBoundsCheck(LOperand* index, LOperand* length) {
1109 inputs_[0] = index; 1095 inputs_[0] = index;
1110 inputs_[1] = length; 1096 inputs_[1] = length;
1111 } 1097 }
1112 1098
1113 LOperand* index() { return inputs_[0]; } 1099 LOperand* index() { return inputs_[0]; }
1114 LOperand* length() { return inputs_[1]; } 1100 LOperand* length() { return inputs_[1]; }
1115 1101
1116 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check") 1102 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check")
1117 DECLARE_HYDROGEN_ACCESSOR(BoundsCheck) 1103 DECLARE_HYDROGEN_ACCESSOR(BoundsCheck)
1118 }; 1104 };
1119 1105
1120 1106
1121 class LBitI V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1107 class LBitI: public LTemplateInstruction<1, 2, 0> {
1122 public: 1108 public:
1123 LBitI(LOperand* left, LOperand* right) { 1109 LBitI(LOperand* left, LOperand* right) {
1124 inputs_[0] = left; 1110 inputs_[0] = left;
1125 inputs_[1] = right; 1111 inputs_[1] = right;
1126 } 1112 }
1127 1113
1128 LOperand* left() { return inputs_[0]; } 1114 LOperand* left() { return inputs_[0]; }
1129 LOperand* right() { return inputs_[1]; } 1115 LOperand* right() { return inputs_[1]; }
1130 1116
1131 Token::Value op() const { return hydrogen()->op(); } 1117 Token::Value op() const { return hydrogen()->op(); }
1132 1118
1133 DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i") 1119 DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i")
1134 DECLARE_HYDROGEN_ACCESSOR(Bitwise) 1120 DECLARE_HYDROGEN_ACCESSOR(Bitwise)
1135 }; 1121 };
1136 1122
1137 1123
1138 class LShiftI V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1124 class LShiftI: public LTemplateInstruction<1, 2, 0> {
1139 public: 1125 public:
1140 LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt) 1126 LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt)
1141 : op_(op), can_deopt_(can_deopt) { 1127 : op_(op), can_deopt_(can_deopt) {
1142 inputs_[0] = left; 1128 inputs_[0] = left;
1143 inputs_[1] = right; 1129 inputs_[1] = right;
1144 } 1130 }
1145 1131
1146 Token::Value op() const { return op_; } 1132 Token::Value op() const { return op_; }
1147 LOperand* left() { return inputs_[0]; } 1133 LOperand* left() { return inputs_[0]; }
1148 LOperand* right() { return inputs_[1]; } 1134 LOperand* right() { return inputs_[1]; }
1149 bool can_deopt() const { return can_deopt_; } 1135 bool can_deopt() const { return can_deopt_; }
1150 1136
1151 DECLARE_CONCRETE_INSTRUCTION(ShiftI, "shift-i") 1137 DECLARE_CONCRETE_INSTRUCTION(ShiftI, "shift-i")
1152 1138
1153 private: 1139 private:
1154 Token::Value op_; 1140 Token::Value op_;
1155 bool can_deopt_; 1141 bool can_deopt_;
1156 }; 1142 };
1157 1143
1158 1144
1159 class LSubI V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1145 class LSubI: public LTemplateInstruction<1, 2, 0> {
1160 public: 1146 public:
1161 LSubI(LOperand* left, LOperand* right) { 1147 LSubI(LOperand* left, LOperand* right) {
1162 inputs_[0] = left; 1148 inputs_[0] = left;
1163 inputs_[1] = right; 1149 inputs_[1] = right;
1164 } 1150 }
1165 1151
1166 LOperand* left() { return inputs_[0]; } 1152 LOperand* left() { return inputs_[0]; }
1167 LOperand* right() { return inputs_[1]; } 1153 LOperand* right() { return inputs_[1]; }
1168 1154
1169 DECLARE_CONCRETE_INSTRUCTION(SubI, "sub-i") 1155 DECLARE_CONCRETE_INSTRUCTION(SubI, "sub-i")
1170 DECLARE_HYDROGEN_ACCESSOR(Sub) 1156 DECLARE_HYDROGEN_ACCESSOR(Sub)
1171 }; 1157 };
1172 1158
1173 1159
1174 class LConstantI V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1160 class LConstantI: public LTemplateInstruction<1, 0, 0> {
1175 public: 1161 public:
1176 DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i") 1162 DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i")
1177 DECLARE_HYDROGEN_ACCESSOR(Constant) 1163 DECLARE_HYDROGEN_ACCESSOR(Constant)
1178 1164
1179 int32_t value() const { return hydrogen()->Integer32Value(); } 1165 int32_t value() const { return hydrogen()->Integer32Value(); }
1180 }; 1166 };
1181 1167
1182 1168
1183 class LConstantS V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1169 class LConstantS: public LTemplateInstruction<1, 0, 0> {
1184 public: 1170 public:
1185 DECLARE_CONCRETE_INSTRUCTION(ConstantS, "constant-s") 1171 DECLARE_CONCRETE_INSTRUCTION(ConstantS, "constant-s")
1186 DECLARE_HYDROGEN_ACCESSOR(Constant) 1172 DECLARE_HYDROGEN_ACCESSOR(Constant)
1187 1173
1188 Smi* value() const { return Smi::FromInt(hydrogen()->Integer32Value()); } 1174 Smi* value() const { return Smi::FromInt(hydrogen()->Integer32Value()); }
1189 }; 1175 };
1190 1176
1191 1177
1192 class LConstantD V8_FINAL : public LTemplateInstruction<1, 0, 1> { 1178 class LConstantD: public LTemplateInstruction<1, 0, 1> {
1193 public: 1179 public:
1194 explicit LConstantD(LOperand* temp) { 1180 explicit LConstantD(LOperand* temp) {
1195 temps_[0] = temp; 1181 temps_[0] = temp;
1196 } 1182 }
1197 1183
1198 LOperand* temp() { return temps_[0]; } 1184 LOperand* temp() { return temps_[0]; }
1199 1185
1200 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d") 1186 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d")
1201 DECLARE_HYDROGEN_ACCESSOR(Constant) 1187 DECLARE_HYDROGEN_ACCESSOR(Constant)
1202 1188
1203 double value() const { return hydrogen()->DoubleValue(); } 1189 double value() const { return hydrogen()->DoubleValue(); }
1204 }; 1190 };
1205 1191
1206 1192
1207 class LConstantE V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1193 class LConstantE: public LTemplateInstruction<1, 0, 0> {
1208 public: 1194 public:
1209 DECLARE_CONCRETE_INSTRUCTION(ConstantE, "constant-e") 1195 DECLARE_CONCRETE_INSTRUCTION(ConstantE, "constant-e")
1210 DECLARE_HYDROGEN_ACCESSOR(Constant) 1196 DECLARE_HYDROGEN_ACCESSOR(Constant)
1211 1197
1212 ExternalReference value() const { 1198 ExternalReference value() const {
1213 return hydrogen()->ExternalReferenceValue(); 1199 return hydrogen()->ExternalReferenceValue();
1214 } 1200 }
1215 }; 1201 };
1216 1202
1217 1203
1218 class LConstantT V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1204 class LConstantT: public LTemplateInstruction<1, 0, 0> {
1219 public: 1205 public:
1220 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t") 1206 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t")
1221 DECLARE_HYDROGEN_ACCESSOR(Constant) 1207 DECLARE_HYDROGEN_ACCESSOR(Constant)
1222 1208
1223 Handle<Object> value() const { return hydrogen()->handle(); } 1209 Handle<Object> value() const { return hydrogen()->handle(); }
1224 }; 1210 };
1225 1211
1226 1212
1227 class LBranch V8_FINAL : public LControlInstruction<1, 0> { 1213 class LBranch: public LControlInstruction<1, 0> {
1228 public: 1214 public:
1229 explicit LBranch(LOperand* value) { 1215 explicit LBranch(LOperand* value) {
1230 inputs_[0] = value; 1216 inputs_[0] = value;
1231 } 1217 }
1232 1218
1233 LOperand* value() { return inputs_[0]; } 1219 LOperand* value() { return inputs_[0]; }
1234 1220
1235 DECLARE_CONCRETE_INSTRUCTION(Branch, "branch") 1221 DECLARE_CONCRETE_INSTRUCTION(Branch, "branch")
1236 DECLARE_HYDROGEN_ACCESSOR(Branch) 1222 DECLARE_HYDROGEN_ACCESSOR(Branch)
1237 1223
1238 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1224 virtual void PrintDataTo(StringStream* stream);
1239 }; 1225 };
1240 1226
1241 1227
1242 class LDebugBreak V8_FINAL : public LTemplateInstruction<0, 0, 0> { 1228 class LDebugBreak: public LTemplateInstruction<0, 0, 0> {
1243 public: 1229 public:
1244 DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break") 1230 DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break")
1245 }; 1231 };
1246 1232
1247 1233
1248 class LCmpMapAndBranch V8_FINAL : public LControlInstruction<1, 0> { 1234 class LCmpMapAndBranch: public LControlInstruction<1, 0> {
1249 public: 1235 public:
1250 explicit LCmpMapAndBranch(LOperand* value) { 1236 explicit LCmpMapAndBranch(LOperand* value) {
1251 inputs_[0] = value; 1237 inputs_[0] = value;
1252 } 1238 }
1253 1239
1254 LOperand* value() { return inputs_[0]; } 1240 LOperand* value() { return inputs_[0]; }
1255 1241
1256 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") 1242 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch")
1257 DECLARE_HYDROGEN_ACCESSOR(CompareMap) 1243 DECLARE_HYDROGEN_ACCESSOR(CompareMap)
1258 1244
1259 Handle<Map> map() const { return hydrogen()->map(); } 1245 Handle<Map> map() const { return hydrogen()->map(); }
1260 }; 1246 };
1261 1247
1262 1248
1263 class LMapEnumLength V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1249 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> {
1264 public: 1250 public:
1265 explicit LMapEnumLength(LOperand* value) { 1251 explicit LMapEnumLength(LOperand* value) {
1266 inputs_[0] = value; 1252 inputs_[0] = value;
1267 } 1253 }
1268 1254
1269 LOperand* value() { return inputs_[0]; } 1255 LOperand* value() { return inputs_[0]; }
1270 1256
1271 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") 1257 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
1272 }; 1258 };
1273 1259
1274 1260
1275 class LElementsKind V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1261 class LElementsKind: public LTemplateInstruction<1, 1, 0> {
1276 public: 1262 public:
1277 explicit LElementsKind(LOperand* value) { 1263 explicit LElementsKind(LOperand* value) {
1278 inputs_[0] = value; 1264 inputs_[0] = value;
1279 } 1265 }
1280 1266
1281 LOperand* value() { return inputs_[0]; } 1267 LOperand* value() { return inputs_[0]; }
1282 1268
1283 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") 1269 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind")
1284 DECLARE_HYDROGEN_ACCESSOR(ElementsKind) 1270 DECLARE_HYDROGEN_ACCESSOR(ElementsKind)
1285 }; 1271 };
1286 1272
1287 1273
1288 class LValueOf V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1274 class LValueOf: public LTemplateInstruction<1, 1, 0> {
1289 public: 1275 public:
1290 explicit LValueOf(LOperand* value) { 1276 explicit LValueOf(LOperand* value) {
1291 inputs_[0] = value; 1277 inputs_[0] = value;
1292 } 1278 }
1293 1279
1294 LOperand* value() { return inputs_[0]; } 1280 LOperand* value() { return inputs_[0]; }
1295 1281
1296 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of") 1282 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of")
1297 DECLARE_HYDROGEN_ACCESSOR(ValueOf) 1283 DECLARE_HYDROGEN_ACCESSOR(ValueOf)
1298 }; 1284 };
1299 1285
1300 1286
1301 class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1287 class LDateField: public LTemplateInstruction<1, 1, 0> {
1302 public: 1288 public:
1303 LDateField(LOperand* date, Smi* index) : index_(index) { 1289 LDateField(LOperand* date, Smi* index) : index_(index) {
1304 inputs_[0] = date; 1290 inputs_[0] = date;
1305 } 1291 }
1306 1292
1307 LOperand* date() { return inputs_[0]; } 1293 LOperand* date() { return inputs_[0]; }
1308 Smi* index() const { return index_; } 1294 Smi* index() const { return index_; }
1309 1295
1310 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "date-field") 1296 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "date-field")
1311 DECLARE_HYDROGEN_ACCESSOR(ValueOf) 1297 DECLARE_HYDROGEN_ACCESSOR(ValueOf)
1312 1298
1313 private: 1299 private:
1314 Smi* index_; 1300 Smi* index_;
1315 }; 1301 };
1316 1302
1317 1303
1318 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { 1304 class LSeqStringSetChar: public LTemplateInstruction<1, 3, 0> {
1319 public: 1305 public:
1320 LSeqStringSetChar(String::Encoding encoding, 1306 LSeqStringSetChar(String::Encoding encoding,
1321 LOperand* string, 1307 LOperand* string,
1322 LOperand* index, 1308 LOperand* index,
1323 LOperand* value) : encoding_(encoding) { 1309 LOperand* value) : encoding_(encoding) {
1324 inputs_[0] = string; 1310 inputs_[0] = string;
1325 inputs_[1] = index; 1311 inputs_[1] = index;
1326 inputs_[2] = value; 1312 inputs_[2] = value;
1327 } 1313 }
1328 1314
1329 String::Encoding encoding() { return encoding_; } 1315 String::Encoding encoding() { return encoding_; }
1330 LOperand* string() { return inputs_[0]; } 1316 LOperand* string() { return inputs_[0]; }
1331 LOperand* index() { return inputs_[1]; } 1317 LOperand* index() { return inputs_[1]; }
1332 LOperand* value() { return inputs_[2]; } 1318 LOperand* value() { return inputs_[2]; }
1333 1319
1334 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") 1320 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char")
1335 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) 1321 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar)
1336 1322
1337 private: 1323 private:
1338 String::Encoding encoding_; 1324 String::Encoding encoding_;
1339 }; 1325 };
1340 1326
1341 1327
1342 class LThrow V8_FINAL : public LTemplateInstruction<0, 1, 0> { 1328 class LThrow: public LTemplateInstruction<0, 1, 0> {
1343 public: 1329 public:
1344 explicit LThrow(LOperand* value) { 1330 explicit LThrow(LOperand* value) {
1345 inputs_[0] = value; 1331 inputs_[0] = value;
1346 } 1332 }
1347 1333
1348 LOperand* value() { return inputs_[0]; } 1334 LOperand* value() { return inputs_[0]; }
1349 1335
1350 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") 1336 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw")
1351 }; 1337 };
1352 1338
1353 1339
1354 class LAddI V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1340 class LAddI: public LTemplateInstruction<1, 2, 0> {
1355 public: 1341 public:
1356 LAddI(LOperand* left, LOperand* right) { 1342 LAddI(LOperand* left, LOperand* right) {
1357 inputs_[0] = left; 1343 inputs_[0] = left;
1358 inputs_[1] = right; 1344 inputs_[1] = right;
1359 } 1345 }
1360 1346
1361 LOperand* left() { return inputs_[0]; } 1347 LOperand* left() { return inputs_[0]; }
1362 LOperand* right() { return inputs_[1]; } 1348 LOperand* right() { return inputs_[1]; }
1363 1349
1364 static bool UseLea(HAdd* add) { 1350 static bool UseLea(HAdd* add) {
1365 return !add->CheckFlag(HValue::kCanOverflow) && 1351 return !add->CheckFlag(HValue::kCanOverflow) &&
1366 add->BetterLeftOperand()->UseCount() > 1; 1352 add->BetterLeftOperand()->UseCount() > 1;
1367 } 1353 }
1368 1354
1369 DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i") 1355 DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i")
1370 DECLARE_HYDROGEN_ACCESSOR(Add) 1356 DECLARE_HYDROGEN_ACCESSOR(Add)
1371 }; 1357 };
1372 1358
1373 1359
1374 class LMathMinMax V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1360 class LMathMinMax: public LTemplateInstruction<1, 2, 0> {
1375 public: 1361 public:
1376 LMathMinMax(LOperand* left, LOperand* right) { 1362 LMathMinMax(LOperand* left, LOperand* right) {
1377 inputs_[0] = left; 1363 inputs_[0] = left;
1378 inputs_[1] = right; 1364 inputs_[1] = right;
1379 } 1365 }
1380 1366
1381 LOperand* left() { return inputs_[0]; } 1367 LOperand* left() { return inputs_[0]; }
1382 LOperand* right() { return inputs_[1]; } 1368 LOperand* right() { return inputs_[1]; }
1383 1369
1384 DECLARE_CONCRETE_INSTRUCTION(MathMinMax, "math-min-max") 1370 DECLARE_CONCRETE_INSTRUCTION(MathMinMax, "math-min-max")
1385 DECLARE_HYDROGEN_ACCESSOR(MathMinMax) 1371 DECLARE_HYDROGEN_ACCESSOR(MathMinMax)
1386 }; 1372 };
1387 1373
1388 1374
1389 class LPower V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1375 class LPower: public LTemplateInstruction<1, 2, 0> {
1390 public: 1376 public:
1391 LPower(LOperand* left, LOperand* right) { 1377 LPower(LOperand* left, LOperand* right) {
1392 inputs_[0] = left; 1378 inputs_[0] = left;
1393 inputs_[1] = right; 1379 inputs_[1] = right;
1394 } 1380 }
1395 1381
1396 LOperand* left() { return inputs_[0]; } 1382 LOperand* left() { return inputs_[0]; }
1397 LOperand* right() { return inputs_[1]; } 1383 LOperand* right() { return inputs_[1]; }
1398 1384
1399 DECLARE_CONCRETE_INSTRUCTION(Power, "power") 1385 DECLARE_CONCRETE_INSTRUCTION(Power, "power")
1400 DECLARE_HYDROGEN_ACCESSOR(Power) 1386 DECLARE_HYDROGEN_ACCESSOR(Power)
1401 }; 1387 };
1402 1388
1403 1389
1404 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1390 class LRandom: public LTemplateInstruction<1, 1, 0> {
1405 public: 1391 public:
1406 explicit LRandom(LOperand* global_object) { 1392 explicit LRandom(LOperand* global_object) {
1407 inputs_[0] = global_object; 1393 inputs_[0] = global_object;
1408 } 1394 }
1409 1395
1410 LOperand* global_object() { return inputs_[0]; } 1396 LOperand* global_object() { return inputs_[0]; }
1411 1397
1412 DECLARE_CONCRETE_INSTRUCTION(Random, "random") 1398 DECLARE_CONCRETE_INSTRUCTION(Random, "random")
1413 DECLARE_HYDROGEN_ACCESSOR(Random) 1399 DECLARE_HYDROGEN_ACCESSOR(Random)
1414 }; 1400 };
1415 1401
1416 1402
1417 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1403 class LArithmeticD: public LTemplateInstruction<1, 2, 0> {
1418 public: 1404 public:
1419 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) 1405 LArithmeticD(Token::Value op, LOperand* left, LOperand* right)
1420 : op_(op) { 1406 : op_(op) {
1421 inputs_[0] = left; 1407 inputs_[0] = left;
1422 inputs_[1] = right; 1408 inputs_[1] = right;
1423 } 1409 }
1424 1410
1425 Token::Value op() const { return op_; } 1411 Token::Value op() const { return op_; }
1426 LOperand* left() { return inputs_[0]; } 1412 LOperand* left() { return inputs_[0]; }
1427 LOperand* right() { return inputs_[1]; } 1413 LOperand* right() { return inputs_[1]; }
1428 1414
1429 virtual Opcode opcode() const V8_OVERRIDE { 1415 virtual Opcode opcode() const { return LInstruction::kArithmeticD; }
1430 return LInstruction::kArithmeticD; 1416 virtual void CompileToNative(LCodeGen* generator);
1431 } 1417 virtual const char* Mnemonic() const;
1432 virtual void CompileToNative(LCodeGen* generator) V8_OVERRIDE;
1433 virtual const char* Mnemonic() const V8_OVERRIDE;
1434 1418
1435 private: 1419 private:
1436 Token::Value op_; 1420 Token::Value op_;
1437 }; 1421 };
1438 1422
1439 1423
1440 class LArithmeticT V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1424 class LArithmeticT: public LTemplateInstruction<1, 2, 0> {
1441 public: 1425 public:
1442 LArithmeticT(Token::Value op, LOperand* left, LOperand* right) 1426 LArithmeticT(Token::Value op, LOperand* left, LOperand* right)
1443 : op_(op) { 1427 : op_(op) {
1444 inputs_[0] = left; 1428 inputs_[0] = left;
1445 inputs_[1] = right; 1429 inputs_[1] = right;
1446 } 1430 }
1447 1431
1448 Token::Value op() const { return op_; } 1432 Token::Value op() const { return op_; }
1449 LOperand* left() { return inputs_[0]; } 1433 LOperand* left() { return inputs_[0]; }
1450 LOperand* right() { return inputs_[1]; } 1434 LOperand* right() { return inputs_[1]; }
1451 1435
1452 virtual Opcode opcode() const V8_OVERRIDE { 1436 virtual Opcode opcode() const { return LInstruction::kArithmeticT; }
1453 return LInstruction::kArithmeticT; 1437 virtual void CompileToNative(LCodeGen* generator);
1454 } 1438 virtual const char* Mnemonic() const;
1455 virtual void CompileToNative(LCodeGen* generator) V8_OVERRIDE;
1456 virtual const char* Mnemonic() const V8_OVERRIDE;
1457 1439
1458 private: 1440 private:
1459 Token::Value op_; 1441 Token::Value op_;
1460 }; 1442 };
1461 1443
1462 1444
1463 class LReturn V8_FINAL : public LTemplateInstruction<0, 2, 0> { 1445 class LReturn: public LTemplateInstruction<0, 2, 0> {
1464 public: 1446 public:
1465 explicit LReturn(LOperand* value, LOperand* parameter_count) { 1447 explicit LReturn(LOperand* value, LOperand* parameter_count) {
1466 inputs_[0] = value; 1448 inputs_[0] = value;
1467 inputs_[1] = parameter_count; 1449 inputs_[1] = parameter_count;
1468 } 1450 }
1469 1451
1470 LOperand* value() { return inputs_[0]; } 1452 LOperand* value() { return inputs_[0]; }
1471 1453
1472 bool has_constant_parameter_count() { 1454 bool has_constant_parameter_count() {
1473 return parameter_count()->IsConstantOperand(); 1455 return parameter_count()->IsConstantOperand();
1474 } 1456 }
1475 LConstantOperand* constant_parameter_count() { 1457 LConstantOperand* constant_parameter_count() {
1476 ASSERT(has_constant_parameter_count()); 1458 ASSERT(has_constant_parameter_count());
1477 return LConstantOperand::cast(parameter_count()); 1459 return LConstantOperand::cast(parameter_count());
1478 } 1460 }
1479 LOperand* parameter_count() { return inputs_[1]; } 1461 LOperand* parameter_count() { return inputs_[1]; }
1480 1462
1481 DECLARE_CONCRETE_INSTRUCTION(Return, "return") 1463 DECLARE_CONCRETE_INSTRUCTION(Return, "return")
1482 DECLARE_HYDROGEN_ACCESSOR(Return) 1464 DECLARE_HYDROGEN_ACCESSOR(Return)
1483 }; 1465 };
1484 1466
1485 1467
1486 class LLoadNamedField V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1468 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> {
1487 public: 1469 public:
1488 explicit LLoadNamedField(LOperand* object) { 1470 explicit LLoadNamedField(LOperand* object) {
1489 inputs_[0] = object; 1471 inputs_[0] = object;
1490 } 1472 }
1491 1473
1492 LOperand* object() { return inputs_[0]; } 1474 LOperand* object() { return inputs_[0]; }
1493 1475
1494 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") 1476 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
1495 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) 1477 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
1496 }; 1478 };
1497 1479
1498 1480
1499 class LLoadNamedGeneric V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1481 class LLoadNamedGeneric: public LTemplateInstruction<1, 1, 0> {
1500 public: 1482 public:
1501 explicit LLoadNamedGeneric(LOperand* object) { 1483 explicit LLoadNamedGeneric(LOperand* object) {
1502 inputs_[0] = object; 1484 inputs_[0] = object;
1503 } 1485 }
1504 1486
1505 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic") 1487 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic")
1506 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric) 1488 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric)
1507 1489
1508 LOperand* object() { return inputs_[0]; } 1490 LOperand* object() { return inputs_[0]; }
1509 Handle<Object> name() const { return hydrogen()->name(); } 1491 Handle<Object> name() const { return hydrogen()->name(); }
1510 }; 1492 };
1511 1493
1512 1494
1513 class LLoadFunctionPrototype V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1495 class LLoadFunctionPrototype: public LTemplateInstruction<1, 1, 0> {
1514 public: 1496 public:
1515 explicit LLoadFunctionPrototype(LOperand* function) { 1497 explicit LLoadFunctionPrototype(LOperand* function) {
1516 inputs_[0] = function; 1498 inputs_[0] = function;
1517 } 1499 }
1518 1500
1519 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") 1501 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1520 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) 1502 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
1521 1503
1522 LOperand* function() { return inputs_[0]; } 1504 LOperand* function() { return inputs_[0]; }
1523 }; 1505 };
1524 1506
1525 1507
1526 class LLoadExternalArrayPointer V8_FINAL 1508 class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> {
1527 : public LTemplateInstruction<1, 1, 0> {
1528 public: 1509 public:
1529 explicit LLoadExternalArrayPointer(LOperand* object) { 1510 explicit LLoadExternalArrayPointer(LOperand* object) {
1530 inputs_[0] = object; 1511 inputs_[0] = object;
1531 } 1512 }
1532 1513
1533 LOperand* object() { return inputs_[0]; } 1514 LOperand* object() { return inputs_[0]; }
1534 1515
1535 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, 1516 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer,
1536 "load-external-array-pointer") 1517 "load-external-array-pointer")
1537 }; 1518 };
1538 1519
1539 1520
1540 class LLoadKeyed V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1521 class LLoadKeyed: public LTemplateInstruction<1, 2, 0> {
1541 public: 1522 public:
1542 LLoadKeyed(LOperand* elements, LOperand* key) { 1523 LLoadKeyed(LOperand* elements, LOperand* key) {
1543 inputs_[0] = elements; 1524 inputs_[0] = elements;
1544 inputs_[1] = key; 1525 inputs_[1] = key;
1545 } 1526 }
1546 1527
1547 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") 1528 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
1548 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) 1529 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
1549 1530
1550 bool is_external() const { 1531 bool is_external() const {
1551 return hydrogen()->is_external(); 1532 return hydrogen()->is_external();
1552 } 1533 }
1553 LOperand* elements() { return inputs_[0]; } 1534 LOperand* elements() { return inputs_[0]; }
1554 LOperand* key() { return inputs_[1]; } 1535 LOperand* key() { return inputs_[1]; }
1555 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1536 virtual void PrintDataTo(StringStream* stream);
1556 uint32_t additional_index() const { return hydrogen()->index_offset(); } 1537 uint32_t additional_index() const { return hydrogen()->index_offset(); }
1557 ElementsKind elements_kind() const { 1538 ElementsKind elements_kind() const {
1558 return hydrogen()->elements_kind(); 1539 return hydrogen()->elements_kind();
1559 } 1540 }
1560 }; 1541 };
1561 1542
1562 1543
1563 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1544 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> {
1564 public: 1545 public:
1565 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { 1546 LLoadKeyedGeneric(LOperand* obj, LOperand* key) {
1566 inputs_[0] = obj; 1547 inputs_[0] = obj;
1567 inputs_[1] = key; 1548 inputs_[1] = key;
1568 } 1549 }
1569 1550
1570 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") 1551 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1571 1552
1572 LOperand* object() { return inputs_[0]; } 1553 LOperand* object() { return inputs_[0]; }
1573 LOperand* key() { return inputs_[1]; } 1554 LOperand* key() { return inputs_[1]; }
1574 }; 1555 };
1575 1556
1576 1557
1577 class LLoadGlobalCell V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1558 class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> {
1578 public: 1559 public:
1579 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") 1560 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell")
1580 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) 1561 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell)
1581 }; 1562 };
1582 1563
1583 1564
1584 class LLoadGlobalGeneric V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1565 class LLoadGlobalGeneric: public LTemplateInstruction<1, 1, 0> {
1585 public: 1566 public:
1586 explicit LLoadGlobalGeneric(LOperand* global_object) { 1567 explicit LLoadGlobalGeneric(LOperand* global_object) {
1587 inputs_[0] = global_object; 1568 inputs_[0] = global_object;
1588 } 1569 }
1589 1570
1590 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") 1571 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1591 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) 1572 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1592 1573
1593 LOperand* global_object() { return inputs_[0]; } 1574 LOperand* global_object() { return inputs_[0]; }
1594 Handle<Object> name() const { return hydrogen()->name(); } 1575 Handle<Object> name() const { return hydrogen()->name(); }
1595 bool for_typeof() const { return hydrogen()->for_typeof(); } 1576 bool for_typeof() const { return hydrogen()->for_typeof(); }
1596 }; 1577 };
1597 1578
1598 1579
1599 class LStoreGlobalCell V8_FINAL : public LTemplateInstruction<0, 1, 1> { 1580 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 1> {
1600 public: 1581 public:
1601 explicit LStoreGlobalCell(LOperand* value, LOperand* temp) { 1582 explicit LStoreGlobalCell(LOperand* value, LOperand* temp) {
1602 inputs_[0] = value; 1583 inputs_[0] = value;
1603 temps_[0] = temp; 1584 temps_[0] = temp;
1604 } 1585 }
1605 1586
1606 LOperand* value() { return inputs_[0]; } 1587 LOperand* value() { return inputs_[0]; }
1607 LOperand* temp() { return temps_[0]; } 1588 LOperand* temp() { return temps_[0]; }
1608 1589
1609 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") 1590 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell")
1610 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) 1591 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell)
1611 }; 1592 };
1612 1593
1613 1594
1614 class LStoreGlobalGeneric V8_FINAL : public LTemplateInstruction<0, 2, 0> { 1595 class LStoreGlobalGeneric: public LTemplateInstruction<0, 2, 0> {
1615 public: 1596 public:
1616 explicit LStoreGlobalGeneric(LOperand* global_object, 1597 explicit LStoreGlobalGeneric(LOperand* global_object,
1617 LOperand* value) { 1598 LOperand* value) {
1618 inputs_[0] = global_object; 1599 inputs_[0] = global_object;
1619 inputs_[1] = value; 1600 inputs_[1] = value;
1620 } 1601 }
1621 1602
1622 LOperand* global_object() { return inputs_[0]; } 1603 LOperand* global_object() { return inputs_[0]; }
1623 LOperand* value() { return inputs_[1]; } 1604 LOperand* value() { return inputs_[1]; }
1624 1605
1625 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic") 1606 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic")
1626 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric) 1607 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric)
1627 1608
1628 Handle<Object> name() const { return hydrogen()->name(); } 1609 Handle<Object> name() const { return hydrogen()->name(); }
1629 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } 1610 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
1630 }; 1611 };
1631 1612
1632 1613
1633 class LLoadContextSlot V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1614 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
1634 public: 1615 public:
1635 explicit LLoadContextSlot(LOperand* context) { 1616 explicit LLoadContextSlot(LOperand* context) {
1636 inputs_[0] = context; 1617 inputs_[0] = context;
1637 } 1618 }
1638 1619
1639 LOperand* context() { return inputs_[0]; } 1620 LOperand* context() { return inputs_[0]; }
1640 1621
1641 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1622 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1642 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1623 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
1643 1624
1644 int slot_index() { return hydrogen()->slot_index(); } 1625 int slot_index() { return hydrogen()->slot_index(); }
1645 1626
1646 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1627 virtual void PrintDataTo(StringStream* stream);
1647 }; 1628 };
1648 1629
1649 1630
1650 class LStoreContextSlot V8_FINAL : public LTemplateInstruction<0, 2, 1> { 1631 class LStoreContextSlot: public LTemplateInstruction<0, 2, 1> {
1651 public: 1632 public:
1652 LStoreContextSlot(LOperand* context, LOperand* value, LOperand* temp) { 1633 LStoreContextSlot(LOperand* context, LOperand* value, LOperand* temp) {
1653 inputs_[0] = context; 1634 inputs_[0] = context;
1654 inputs_[1] = value; 1635 inputs_[1] = value;
1655 temps_[0] = temp; 1636 temps_[0] = temp;
1656 } 1637 }
1657 1638
1658 LOperand* context() { return inputs_[0]; } 1639 LOperand* context() { return inputs_[0]; }
1659 LOperand* value() { return inputs_[1]; } 1640 LOperand* value() { return inputs_[1]; }
1660 LOperand* temp() { return temps_[0]; } 1641 LOperand* temp() { return temps_[0]; }
1661 1642
1662 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot") 1643 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot")
1663 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot) 1644 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot)
1664 1645
1665 int slot_index() { return hydrogen()->slot_index(); } 1646 int slot_index() { return hydrogen()->slot_index(); }
1666 1647
1667 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1648 virtual void PrintDataTo(StringStream* stream);
1668 }; 1649 };
1669 1650
1670 1651
1671 class LPushArgument V8_FINAL : public LTemplateInstruction<0, 1, 0> { 1652 class LPushArgument: public LTemplateInstruction<0, 1, 0> {
1672 public: 1653 public:
1673 explicit LPushArgument(LOperand* value) { 1654 explicit LPushArgument(LOperand* value) {
1674 inputs_[0] = value; 1655 inputs_[0] = value;
1675 } 1656 }
1676 1657
1677 LOperand* value() { return inputs_[0]; } 1658 LOperand* value() { return inputs_[0]; }
1678 1659
1679 DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument") 1660 DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument")
1680 }; 1661 };
1681 1662
1682 1663
1683 class LDrop V8_FINAL : public LTemplateInstruction<0, 0, 0> { 1664 class LDrop: public LTemplateInstruction<0, 0, 0> {
1684 public: 1665 public:
1685 explicit LDrop(int count) : count_(count) { } 1666 explicit LDrop(int count) : count_(count) { }
1686 1667
1687 int count() const { return count_; } 1668 int count() const { return count_; }
1688 1669
1689 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop") 1670 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop")
1690 1671
1691 private: 1672 private:
1692 int count_; 1673 int count_;
1693 }; 1674 };
1694 1675
1695 1676
1696 class LInnerAllocatedObject V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1677 class LInnerAllocatedObject: public LTemplateInstruction<1, 1, 0> {
1697 public: 1678 public:
1698 explicit LInnerAllocatedObject(LOperand* base_object) { 1679 explicit LInnerAllocatedObject(LOperand* base_object) {
1699 inputs_[0] = base_object; 1680 inputs_[0] = base_object;
1700 } 1681 }
1701 1682
1702 LOperand* base_object() { return inputs_[0]; } 1683 LOperand* base_object() { return inputs_[0]; }
1703 int offset() { return hydrogen()->offset(); } 1684 int offset() { return hydrogen()->offset(); }
1704 1685
1705 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1686 virtual void PrintDataTo(StringStream* stream);
1706 1687
1707 DECLARE_CONCRETE_INSTRUCTION(InnerAllocatedObject, "sub-allocated-object") 1688 DECLARE_CONCRETE_INSTRUCTION(InnerAllocatedObject, "sub-allocated-object")
1708 DECLARE_HYDROGEN_ACCESSOR(InnerAllocatedObject) 1689 DECLARE_HYDROGEN_ACCESSOR(InnerAllocatedObject)
1709 }; 1690 };
1710 1691
1711 1692
1712 class LThisFunction V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1693 class LThisFunction: public LTemplateInstruction<1, 0, 0> {
1713 public: 1694 public:
1714 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") 1695 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function")
1715 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) 1696 DECLARE_HYDROGEN_ACCESSOR(ThisFunction)
1716 }; 1697 };
1717 1698
1718 1699
1719 class LContext V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1700 class LContext: public LTemplateInstruction<1, 0, 0> {
1720 public: 1701 public:
1721 DECLARE_CONCRETE_INSTRUCTION(Context, "context") 1702 DECLARE_CONCRETE_INSTRUCTION(Context, "context")
1722 DECLARE_HYDROGEN_ACCESSOR(Context) 1703 DECLARE_HYDROGEN_ACCESSOR(Context)
1723 }; 1704 };
1724 1705
1725 1706
1726 class LOuterContext V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1707 class LOuterContext: public LTemplateInstruction<1, 1, 0> {
1727 public: 1708 public:
1728 explicit LOuterContext(LOperand* context) { 1709 explicit LOuterContext(LOperand* context) {
1729 inputs_[0] = context; 1710 inputs_[0] = context;
1730 } 1711 }
1731 1712
1732 LOperand* context() { return inputs_[0]; } 1713 LOperand* context() { return inputs_[0]; }
1733 1714
1734 DECLARE_CONCRETE_INSTRUCTION(OuterContext, "outer-context") 1715 DECLARE_CONCRETE_INSTRUCTION(OuterContext, "outer-context")
1735 }; 1716 };
1736 1717
1737 1718
1738 class LDeclareGlobals V8_FINAL : public LTemplateInstruction<0, 0, 0> { 1719 class LDeclareGlobals: public LTemplateInstruction<0, 0, 0> {
1739 public: 1720 public:
1740 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals") 1721 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals")
1741 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals) 1722 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals)
1742 }; 1723 };
1743 1724
1744 1725
1745 class LGlobalObject V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1726 class LGlobalObject: public LTemplateInstruction<1, 0, 0> {
1746 public: 1727 public:
1747 DECLARE_CONCRETE_INSTRUCTION(GlobalObject, "global-object") 1728 DECLARE_CONCRETE_INSTRUCTION(GlobalObject, "global-object")
1748 }; 1729 };
1749 1730
1750 1731
1751 class LGlobalReceiver V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1732 class LGlobalReceiver: public LTemplateInstruction<1, 1, 0> {
1752 public: 1733 public:
1753 explicit LGlobalReceiver(LOperand* global_object) { 1734 explicit LGlobalReceiver(LOperand* global_object) {
1754 inputs_[0] = global_object; 1735 inputs_[0] = global_object;
1755 } 1736 }
1756 1737
1757 LOperand* global() { return inputs_[0]; } 1738 LOperand* global() { return inputs_[0]; }
1758 1739
1759 DECLARE_CONCRETE_INSTRUCTION(GlobalReceiver, "global-receiver") 1740 DECLARE_CONCRETE_INSTRUCTION(GlobalReceiver, "global-receiver")
1760 }; 1741 };
1761 1742
1762 1743
1763 class LCallConstantFunction V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1744 class LCallConstantFunction: public LTemplateInstruction<1, 0, 0> {
1764 public: 1745 public:
1765 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function") 1746 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function")
1766 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction) 1747 DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction)
1767 1748
1768 virtual void PrintDataTo(StringStream* stream); 1749 virtual void PrintDataTo(StringStream* stream);
1769 1750
1770 Handle<JSFunction> function() { return hydrogen()->function(); } 1751 Handle<JSFunction> function() { return hydrogen()->function(); }
1771 int arity() const { return hydrogen()->argument_count() - 1; } 1752 int arity() const { return hydrogen()->argument_count() - 1; }
1772 }; 1753 };
1773 1754
1774 1755
1775 class LInvokeFunction V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1756 class LInvokeFunction: public LTemplateInstruction<1, 1, 0> {
1776 public: 1757 public:
1777 explicit LInvokeFunction(LOperand* function) { 1758 explicit LInvokeFunction(LOperand* function) {
1778 inputs_[0] = function; 1759 inputs_[0] = function;
1779 } 1760 }
1780 1761
1781 LOperand* function() { return inputs_[0]; } 1762 LOperand* function() { return inputs_[0]; }
1782 1763
1783 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") 1764 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function")
1784 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) 1765 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction)
1785 1766
1786 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1767 virtual void PrintDataTo(StringStream* stream);
1787 1768
1788 int arity() const { return hydrogen()->argument_count() - 1; } 1769 int arity() const { return hydrogen()->argument_count() - 1; }
1789 }; 1770 };
1790 1771
1791 1772
1792 class LCallKeyed V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1773 class LCallKeyed: public LTemplateInstruction<1, 1, 0> {
1793 public: 1774 public:
1794 explicit LCallKeyed(LOperand* key) { 1775 explicit LCallKeyed(LOperand* key) {
1795 inputs_[0] = key; 1776 inputs_[0] = key;
1796 } 1777 }
1797 1778
1798 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") 1779 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed")
1799 DECLARE_HYDROGEN_ACCESSOR(CallKeyed) 1780 DECLARE_HYDROGEN_ACCESSOR(CallKeyed)
1800 1781
1801 LOperand* key() { return inputs_[0]; } 1782 LOperand* key() { return inputs_[0]; }
1802 1783
1803 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1784 virtual void PrintDataTo(StringStream* stream);
1804 1785
1805 int arity() const { return hydrogen()->argument_count() - 1; } 1786 int arity() const { return hydrogen()->argument_count() - 1; }
1806 }; 1787 };
1807 1788
1808 1789
1809 class LCallNamed V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1790 class LCallNamed: public LTemplateInstruction<1, 0, 0> {
1810 public: 1791 public:
1811 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named") 1792 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named")
1812 DECLARE_HYDROGEN_ACCESSOR(CallNamed) 1793 DECLARE_HYDROGEN_ACCESSOR(CallNamed)
1813 1794
1814 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1795 virtual void PrintDataTo(StringStream* stream);
1815 1796
1816 Handle<String> name() const { return hydrogen()->name(); } 1797 Handle<String> name() const { return hydrogen()->name(); }
1817 int arity() const { return hydrogen()->argument_count() - 1; } 1798 int arity() const { return hydrogen()->argument_count() - 1; }
1818 }; 1799 };
1819 1800
1820 1801
1821 class LCallFunction V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1802 class LCallFunction: public LTemplateInstruction<1, 1, 0> {
1822 public: 1803 public:
1823 explicit LCallFunction(LOperand* function) { 1804 explicit LCallFunction(LOperand* function) {
1824 inputs_[0] = function; 1805 inputs_[0] = function;
1825 } 1806 }
1826 1807
1827 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") 1808 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1828 DECLARE_HYDROGEN_ACCESSOR(CallFunction) 1809 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1829 1810
1830 LOperand* function() { return inputs_[0]; } 1811 LOperand* function() { return inputs_[0]; }
1831 int arity() const { return hydrogen()->argument_count() - 1; } 1812 int arity() const { return hydrogen()->argument_count() - 1; }
1832 }; 1813 };
1833 1814
1834 1815
1835 class LCallGlobal V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1816 class LCallGlobal: public LTemplateInstruction<1, 0, 0> {
1836 public: 1817 public:
1837 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global") 1818 DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global")
1838 DECLARE_HYDROGEN_ACCESSOR(CallGlobal) 1819 DECLARE_HYDROGEN_ACCESSOR(CallGlobal)
1839 1820
1840 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1821 virtual void PrintDataTo(StringStream* stream);
1841 1822
1842 Handle<String> name() const {return hydrogen()->name(); } 1823 Handle<String> name() const {return hydrogen()->name(); }
1843 int arity() const { return hydrogen()->argument_count() - 1; } 1824 int arity() const { return hydrogen()->argument_count() - 1; }
1844 }; 1825 };
1845 1826
1846 1827
1847 class LCallKnownGlobal V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1828 class LCallKnownGlobal: public LTemplateInstruction<1, 0, 0> {
1848 public: 1829 public:
1849 DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global") 1830 DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global")
1850 DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal) 1831 DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal)
1851 1832
1852 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1833 virtual void PrintDataTo(StringStream* stream);
1853 1834
1854 int arity() const { return hydrogen()->argument_count() - 1; } 1835 int arity() const { return hydrogen()->argument_count() - 1; }
1855 }; 1836 };
1856 1837
1857 1838
1858 class LCallNew V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1839 class LCallNew: public LTemplateInstruction<1, 1, 0> {
1859 public: 1840 public:
1860 explicit LCallNew(LOperand* constructor) { 1841 explicit LCallNew(LOperand* constructor) {
1861 inputs_[0] = constructor; 1842 inputs_[0] = constructor;
1862 } 1843 }
1863 1844
1864 LOperand* constructor() { return inputs_[0]; } 1845 LOperand* constructor() { return inputs_[0]; }
1865 1846
1866 DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new") 1847 DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new")
1867 DECLARE_HYDROGEN_ACCESSOR(CallNew) 1848 DECLARE_HYDROGEN_ACCESSOR(CallNew)
1868 1849
1869 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1850 virtual void PrintDataTo(StringStream* stream);
1870 1851
1871 int arity() const { return hydrogen()->argument_count() - 1; } 1852 int arity() const { return hydrogen()->argument_count() - 1; }
1872 }; 1853 };
1873 1854
1874 1855
1875 class LCallNewArray V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1856 class LCallNewArray: public LTemplateInstruction<1, 1, 0> {
1876 public: 1857 public:
1877 explicit LCallNewArray(LOperand* constructor) { 1858 explicit LCallNewArray(LOperand* constructor) {
1878 inputs_[0] = constructor; 1859 inputs_[0] = constructor;
1879 } 1860 }
1880 1861
1881 LOperand* constructor() { return inputs_[0]; } 1862 LOperand* constructor() { return inputs_[0]; }
1882 1863
1883 DECLARE_CONCRETE_INSTRUCTION(CallNewArray, "call-new-array") 1864 DECLARE_CONCRETE_INSTRUCTION(CallNewArray, "call-new-array")
1884 DECLARE_HYDROGEN_ACCESSOR(CallNewArray) 1865 DECLARE_HYDROGEN_ACCESSOR(CallNewArray)
1885 1866
1886 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1867 virtual void PrintDataTo(StringStream* stream);
1887 1868
1888 int arity() const { return hydrogen()->argument_count() - 1; } 1869 int arity() const { return hydrogen()->argument_count() - 1; }
1889 }; 1870 };
1890 1871
1891 1872
1892 class LCallRuntime V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1873 class LCallRuntime: public LTemplateInstruction<1, 0, 0> {
1893 public: 1874 public:
1894 DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime") 1875 DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime")
1895 DECLARE_HYDROGEN_ACCESSOR(CallRuntime) 1876 DECLARE_HYDROGEN_ACCESSOR(CallRuntime)
1896 1877
1897 const Runtime::Function* function() const { return hydrogen()->function(); } 1878 const Runtime::Function* function() const { return hydrogen()->function(); }
1898 int arity() const { return hydrogen()->argument_count(); } 1879 int arity() const { return hydrogen()->argument_count(); }
1899 }; 1880 };
1900 1881
1901 1882
1902 class LInteger32ToDouble V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1883 class LInteger32ToDouble: public LTemplateInstruction<1, 1, 0> {
1903 public: 1884 public:
1904 explicit LInteger32ToDouble(LOperand* value) { 1885 explicit LInteger32ToDouble(LOperand* value) {
1905 inputs_[0] = value; 1886 inputs_[0] = value;
1906 } 1887 }
1907 1888
1908 LOperand* value() { return inputs_[0]; } 1889 LOperand* value() { return inputs_[0]; }
1909 1890
1910 DECLARE_CONCRETE_INSTRUCTION(Integer32ToDouble, "int32-to-double") 1891 DECLARE_CONCRETE_INSTRUCTION(Integer32ToDouble, "int32-to-double")
1911 }; 1892 };
1912 1893
1913 1894
1914 class LInteger32ToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1895 class LInteger32ToSmi: public LTemplateInstruction<1, 1, 0> {
1915 public: 1896 public:
1916 explicit LInteger32ToSmi(LOperand* value) { 1897 explicit LInteger32ToSmi(LOperand* value) {
1917 inputs_[0] = value; 1898 inputs_[0] = value;
1918 } 1899 }
1919 1900
1920 LOperand* value() { return inputs_[0]; } 1901 LOperand* value() { return inputs_[0]; }
1921 1902
1922 DECLARE_CONCRETE_INSTRUCTION(Integer32ToSmi, "int32-to-smi") 1903 DECLARE_CONCRETE_INSTRUCTION(Integer32ToSmi, "int32-to-smi")
1923 DECLARE_HYDROGEN_ACCESSOR(Change) 1904 DECLARE_HYDROGEN_ACCESSOR(Change)
1924 }; 1905 };
1925 1906
1926 1907
1927 class LUint32ToDouble V8_FINAL : public LTemplateInstruction<1, 1, 1> { 1908 class LUint32ToDouble: public LTemplateInstruction<1, 1, 1> {
1928 public: 1909 public:
1929 explicit LUint32ToDouble(LOperand* value, LOperand* temp) { 1910 explicit LUint32ToDouble(LOperand* value, LOperand* temp) {
1930 inputs_[0] = value; 1911 inputs_[0] = value;
1931 temps_[0] = temp; 1912 temps_[0] = temp;
1932 } 1913 }
1933 1914
1934 LOperand* value() { return inputs_[0]; } 1915 LOperand* value() { return inputs_[0]; }
1935 LOperand* temp() { return temps_[0]; } 1916 LOperand* temp() { return temps_[0]; }
1936 1917
1937 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") 1918 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double")
1938 }; 1919 };
1939 1920
1940 1921
1941 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1922 class LNumberTagI: public LTemplateInstruction<1, 1, 0> {
1942 public: 1923 public:
1943 explicit LNumberTagI(LOperand* value) { 1924 explicit LNumberTagI(LOperand* value) {
1944 inputs_[0] = value; 1925 inputs_[0] = value;
1945 } 1926 }
1946 1927
1947 LOperand* value() { return inputs_[0]; } 1928 LOperand* value() { return inputs_[0]; }
1948 1929
1949 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") 1930 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
1950 }; 1931 };
1951 1932
1952 1933
1953 class LNumberTagU V8_FINAL : public LTemplateInstruction<1, 1, 1> { 1934 class LNumberTagU: public LTemplateInstruction<1, 1, 1> {
1954 public: 1935 public:
1955 explicit LNumberTagU(LOperand* value, LOperand* temp) { 1936 explicit LNumberTagU(LOperand* value, LOperand* temp) {
1956 inputs_[0] = value; 1937 inputs_[0] = value;
1957 temps_[0] = temp; 1938 temps_[0] = temp;
1958 } 1939 }
1959 1940
1960 LOperand* value() { return inputs_[0]; } 1941 LOperand* value() { return inputs_[0]; }
1961 LOperand* temp() { return temps_[0]; } 1942 LOperand* temp() { return temps_[0]; }
1962 1943
1963 DECLARE_CONCRETE_INSTRUCTION(NumberTagU, "number-tag-u") 1944 DECLARE_CONCRETE_INSTRUCTION(NumberTagU, "number-tag-u")
1964 }; 1945 };
1965 1946
1966 1947
1967 class LNumberTagD V8_FINAL : public LTemplateInstruction<1, 1, 1> { 1948 class LNumberTagD: public LTemplateInstruction<1, 1, 1> {
1968 public: 1949 public:
1969 explicit LNumberTagD(LOperand* value, LOperand* temp) { 1950 explicit LNumberTagD(LOperand* value, LOperand* temp) {
1970 inputs_[0] = value; 1951 inputs_[0] = value;
1971 temps_[0] = temp; 1952 temps_[0] = temp;
1972 } 1953 }
1973 1954
1974 LOperand* value() { return inputs_[0]; } 1955 LOperand* value() { return inputs_[0]; }
1975 LOperand* temp() { return temps_[0]; } 1956 LOperand* temp() { return temps_[0]; }
1976 1957
1977 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") 1958 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d")
1978 DECLARE_HYDROGEN_ACCESSOR(Change) 1959 DECLARE_HYDROGEN_ACCESSOR(Change)
1979 }; 1960 };
1980 1961
1981 1962
1982 // Sometimes truncating conversion from a tagged value to an int32. 1963 // Sometimes truncating conversion from a tagged value to an int32.
1983 class LDoubleToI V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1964 class LDoubleToI: public LTemplateInstruction<1, 1, 0> {
1984 public: 1965 public:
1985 explicit LDoubleToI(LOperand* value) { 1966 explicit LDoubleToI(LOperand* value) {
1986 inputs_[0] = value; 1967 inputs_[0] = value;
1987 } 1968 }
1988 1969
1989 LOperand* value() { return inputs_[0]; } 1970 LOperand* value() { return inputs_[0]; }
1990 1971
1991 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") 1972 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i")
1992 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) 1973 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation)
1993 1974
1994 bool truncating() { return hydrogen()->CanTruncateToInt32(); } 1975 bool truncating() { return hydrogen()->CanTruncateToInt32(); }
1995 }; 1976 };
1996 1977
1997 1978
1998 class LDoubleToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1979 class LDoubleToSmi: public LTemplateInstruction<1, 1, 0> {
1999 public: 1980 public:
2000 explicit LDoubleToSmi(LOperand* value) { 1981 explicit LDoubleToSmi(LOperand* value) {
2001 inputs_[0] = value; 1982 inputs_[0] = value;
2002 } 1983 }
2003 1984
2004 LOperand* value() { return inputs_[0]; } 1985 LOperand* value() { return inputs_[0]; }
2005 1986
2006 DECLARE_CONCRETE_INSTRUCTION(DoubleToSmi, "double-to-smi") 1987 DECLARE_CONCRETE_INSTRUCTION(DoubleToSmi, "double-to-smi")
2007 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) 1988 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation)
2008 }; 1989 };
2009 1990
2010 1991
2011 // Truncating conversion from a tagged value to an int32. 1992 // Truncating conversion from a tagged value to an int32.
2012 class LTaggedToI V8_FINAL : public LTemplateInstruction<1, 1, 1> { 1993 class LTaggedToI: public LTemplateInstruction<1, 1, 1> {
2013 public: 1994 public:
2014 LTaggedToI(LOperand* value, LOperand* temp) { 1995 LTaggedToI(LOperand* value, LOperand* temp) {
2015 inputs_[0] = value; 1996 inputs_[0] = value;
2016 temps_[0] = temp; 1997 temps_[0] = temp;
2017 } 1998 }
2018 1999
2019 LOperand* value() { return inputs_[0]; } 2000 LOperand* value() { return inputs_[0]; }
2020 LOperand* temp() { return temps_[0]; } 2001 LOperand* temp() { return temps_[0]; }
2021 2002
2022 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") 2003 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i")
2023 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) 2004 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation)
2024 2005
2025 bool truncating() { return hydrogen()->CanTruncateToInt32(); } 2006 bool truncating() { return hydrogen()->CanTruncateToInt32(); }
2026 }; 2007 };
2027 2008
2028 2009
2029 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2010 class LSmiTag: public LTemplateInstruction<1, 1, 0> {
2030 public: 2011 public:
2031 explicit LSmiTag(LOperand* value) { 2012 explicit LSmiTag(LOperand* value) {
2032 inputs_[0] = value; 2013 inputs_[0] = value;
2033 } 2014 }
2034 2015
2035 LOperand* value() { return inputs_[0]; } 2016 LOperand* value() { return inputs_[0]; }
2036 2017
2037 DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag") 2018 DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag")
2038 }; 2019 };
2039 2020
2040 2021
2041 class LNumberUntagD V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2022 class LNumberUntagD: public LTemplateInstruction<1, 1, 0> {
2042 public: 2023 public:
2043 explicit LNumberUntagD(LOperand* value) { 2024 explicit LNumberUntagD(LOperand* value) {
2044 inputs_[0] = value; 2025 inputs_[0] = value;
2045 } 2026 }
2046 2027
2047 LOperand* value() { return inputs_[0]; } 2028 LOperand* value() { return inputs_[0]; }
2048 2029
2049 DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag") 2030 DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag")
2050 DECLARE_HYDROGEN_ACCESSOR(Change); 2031 DECLARE_HYDROGEN_ACCESSOR(Change);
2051 }; 2032 };
2052 2033
2053 2034
2054 class LSmiUntag V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2035 class LSmiUntag: public LTemplateInstruction<1, 1, 0> {
2055 public: 2036 public:
2056 LSmiUntag(LOperand* value, bool needs_check) 2037 LSmiUntag(LOperand* value, bool needs_check)
2057 : needs_check_(needs_check) { 2038 : needs_check_(needs_check) {
2058 inputs_[0] = value; 2039 inputs_[0] = value;
2059 } 2040 }
2060 2041
2061 LOperand* value() { return inputs_[0]; } 2042 LOperand* value() { return inputs_[0]; }
2062 bool needs_check() const { return needs_check_; } 2043 bool needs_check() const { return needs_check_; }
2063 2044
2064 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag") 2045 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag")
2065 2046
2066 private: 2047 private:
2067 bool needs_check_; 2048 bool needs_check_;
2068 }; 2049 };
2069 2050
2070 2051
2071 class LStoreNamedField V8_FINAL : public LTemplateInstruction<0, 2, 1> { 2052 class LStoreNamedField: public LTemplateInstruction<0, 2, 1> {
2072 public: 2053 public:
2073 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) { 2054 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) {
2074 inputs_[0] = object; 2055 inputs_[0] = object;
2075 inputs_[1] = value; 2056 inputs_[1] = value;
2076 temps_[0] = temp; 2057 temps_[0] = temp;
2077 } 2058 }
2078 2059
2079 LOperand* object() { return inputs_[0]; } 2060 LOperand* object() { return inputs_[0]; }
2080 LOperand* value() { return inputs_[1]; } 2061 LOperand* value() { return inputs_[1]; }
2081 LOperand* temp() { return temps_[0]; } 2062 LOperand* temp() { return temps_[0]; }
2082 2063
2083 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") 2064 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
2084 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) 2065 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
2085 2066
2086 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2067 virtual void PrintDataTo(StringStream* stream);
2087 2068
2088 Handle<Map> transition() const { return hydrogen()->transition_map(); } 2069 Handle<Map> transition() const { return hydrogen()->transition_map(); }
2089 Representation representation() const { 2070 Representation representation() const {
2090 return hydrogen()->field_representation(); 2071 return hydrogen()->field_representation();
2091 } 2072 }
2092 }; 2073 };
2093 2074
2094 2075
2095 class LStoreNamedGeneric V8_FINAL : public LTemplateInstruction<0, 2, 0> { 2076 class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> {
2096 public: 2077 public:
2097 LStoreNamedGeneric(LOperand* object, LOperand* value) { 2078 LStoreNamedGeneric(LOperand* object, LOperand* value) {
2098 inputs_[0] = object; 2079 inputs_[0] = object;
2099 inputs_[1] = value; 2080 inputs_[1] = value;
2100 } 2081 }
2101 2082
2102 LOperand* object() { return inputs_[0]; } 2083 LOperand* object() { return inputs_[0]; }
2103 LOperand* value() { return inputs_[1]; } 2084 LOperand* value() { return inputs_[1]; }
2104 2085
2105 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") 2086 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
2106 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) 2087 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
2107 2088
2108 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2089 virtual void PrintDataTo(StringStream* stream);
2109 2090
2110 Handle<Object> name() const { return hydrogen()->name(); } 2091 Handle<Object> name() const { return hydrogen()->name(); }
2111 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } 2092 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
2112 }; 2093 };
2113 2094
2114 2095
2115 class LStoreKeyed V8_FINAL : public LTemplateInstruction<0, 3, 0> { 2096 class LStoreKeyed: public LTemplateInstruction<0, 3, 0> {
2116 public: 2097 public:
2117 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { 2098 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) {
2118 inputs_[0] = object; 2099 inputs_[0] = object;
2119 inputs_[1] = key; 2100 inputs_[1] = key;
2120 inputs_[2] = value; 2101 inputs_[2] = value;
2121 } 2102 }
2122 2103
2123 bool is_external() const { return hydrogen()->is_external(); } 2104 bool is_external() const { return hydrogen()->is_external(); }
2124 LOperand* elements() { return inputs_[0]; } 2105 LOperand* elements() { return inputs_[0]; }
2125 LOperand* key() { return inputs_[1]; } 2106 LOperand* key() { return inputs_[1]; }
2126 LOperand* value() { return inputs_[2]; } 2107 LOperand* value() { return inputs_[2]; }
2127 ElementsKind elements_kind() const { return hydrogen()->elements_kind(); } 2108 ElementsKind elements_kind() const { return hydrogen()->elements_kind(); }
2128 2109
2129 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") 2110 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
2130 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2111 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2131 2112
2132 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2113 virtual void PrintDataTo(StringStream* stream);
2133 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } 2114 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); }
2134 uint32_t additional_index() const { return hydrogen()->index_offset(); } 2115 uint32_t additional_index() const { return hydrogen()->index_offset(); }
2135 }; 2116 };
2136 2117
2137 2118
2138 class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 3, 0> { 2119 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> {
2139 public: 2120 public:
2140 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) { 2121 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) {
2141 inputs_[0] = object; 2122 inputs_[0] = object;
2142 inputs_[1] = key; 2123 inputs_[1] = key;
2143 inputs_[2] = value; 2124 inputs_[2] = value;
2144 } 2125 }
2145 2126
2146 LOperand* object() { return inputs_[0]; } 2127 LOperand* object() { return inputs_[0]; }
2147 LOperand* key() { return inputs_[1]; } 2128 LOperand* key() { return inputs_[1]; }
2148 LOperand* value() { return inputs_[2]; } 2129 LOperand* value() { return inputs_[2]; }
2149 2130
2150 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") 2131 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
2151 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) 2132 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric)
2152 2133
2153 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2134 virtual void PrintDataTo(StringStream* stream);
2154 2135
2155 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } 2136 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
2156 }; 2137 };
2157 2138
2158 2139
2159 class LTransitionElementsKind V8_FINAL : public LTemplateInstruction<0, 1, 2> { 2140 class LTransitionElementsKind: public LTemplateInstruction<0, 1, 2> {
2160 public: 2141 public:
2161 LTransitionElementsKind(LOperand* object, 2142 LTransitionElementsKind(LOperand* object,
2162 LOperand* new_map_temp, 2143 LOperand* new_map_temp,
2163 LOperand* temp) { 2144 LOperand* temp) {
2164 inputs_[0] = object; 2145 inputs_[0] = object;
2165 temps_[0] = new_map_temp; 2146 temps_[0] = new_map_temp;
2166 temps_[1] = temp; 2147 temps_[1] = temp;
2167 } 2148 }
2168 2149
2169 LOperand* object() { return inputs_[0]; } 2150 LOperand* object() { return inputs_[0]; }
2170 LOperand* new_map_temp() { return temps_[0]; } 2151 LOperand* new_map_temp() { return temps_[0]; }
2171 LOperand* temp() { return temps_[1]; } 2152 LOperand* temp() { return temps_[1]; }
2172 2153
2173 DECLARE_CONCRETE_INSTRUCTION(TransitionElementsKind, 2154 DECLARE_CONCRETE_INSTRUCTION(TransitionElementsKind,
2174 "transition-elements-kind") 2155 "transition-elements-kind")
2175 DECLARE_HYDROGEN_ACCESSOR(TransitionElementsKind) 2156 DECLARE_HYDROGEN_ACCESSOR(TransitionElementsKind)
2176 2157
2177 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2158 virtual void PrintDataTo(StringStream* stream);
2178 2159
2179 Handle<Map> original_map() { return hydrogen()->original_map(); } 2160 Handle<Map> original_map() { return hydrogen()->original_map(); }
2180 Handle<Map> transitioned_map() { return hydrogen()->transitioned_map(); } 2161 Handle<Map> transitioned_map() { return hydrogen()->transitioned_map(); }
2181 ElementsKind from_kind() { return hydrogen()->from_kind(); } 2162 ElementsKind from_kind() { return hydrogen()->from_kind(); }
2182 ElementsKind to_kind() { return hydrogen()->to_kind(); } 2163 ElementsKind to_kind() { return hydrogen()->to_kind(); }
2183 }; 2164 };
2184 2165
2185 2166
2186 class LTrapAllocationMemento V8_FINAL : public LTemplateInstruction<0, 1, 1> { 2167 class LTrapAllocationMemento : public LTemplateInstruction<0, 1, 1> {
2187 public: 2168 public:
2188 LTrapAllocationMemento(LOperand* object, 2169 LTrapAllocationMemento(LOperand* object,
2189 LOperand* temp) { 2170 LOperand* temp) {
2190 inputs_[0] = object; 2171 inputs_[0] = object;
2191 temps_[0] = temp; 2172 temps_[0] = temp;
2192 } 2173 }
2193 2174
2194 LOperand* object() { return inputs_[0]; } 2175 LOperand* object() { return inputs_[0]; }
2195 LOperand* temp() { return temps_[0]; } 2176 LOperand* temp() { return temps_[0]; }
2196 2177
2197 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, 2178 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento,
2198 "trap-allocation-memento") 2179 "trap-allocation-memento")
2199 }; 2180 };
2200 2181
2201 2182
2202 class LStringAdd V8_FINAL : public LTemplateInstruction<1, 2, 0> { 2183 class LStringAdd: public LTemplateInstruction<1, 2, 0> {
2203 public: 2184 public:
2204 LStringAdd(LOperand* left, LOperand* right) { 2185 LStringAdd(LOperand* left, LOperand* right) {
2205 inputs_[0] = left; 2186 inputs_[0] = left;
2206 inputs_[1] = right; 2187 inputs_[1] = right;
2207 } 2188 }
2208 2189
2209 LOperand* left() { return inputs_[0]; } 2190 LOperand* left() { return inputs_[0]; }
2210 LOperand* right() { return inputs_[1]; } 2191 LOperand* right() { return inputs_[1]; }
2211 2192
2212 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add") 2193 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add")
2213 DECLARE_HYDROGEN_ACCESSOR(StringAdd) 2194 DECLARE_HYDROGEN_ACCESSOR(StringAdd)
2214 }; 2195 };
2215 2196
2216 2197
2217 class LStringCharCodeAt V8_FINAL : public LTemplateInstruction<1, 2, 0> { 2198 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> {
2218 public: 2199 public:
2219 LStringCharCodeAt(LOperand* string, LOperand* index) { 2200 LStringCharCodeAt(LOperand* string, LOperand* index) {
2220 inputs_[0] = string; 2201 inputs_[0] = string;
2221 inputs_[1] = index; 2202 inputs_[1] = index;
2222 } 2203 }
2223 2204
2224 LOperand* string() { return inputs_[0]; } 2205 LOperand* string() { return inputs_[0]; }
2225 LOperand* index() { return inputs_[1]; } 2206 LOperand* index() { return inputs_[1]; }
2226 2207
2227 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") 2208 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
2228 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) 2209 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
2229 }; 2210 };
2230 2211
2231 2212
2232 class LStringCharFromCode V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2213 class LStringCharFromCode: public LTemplateInstruction<1, 1, 0> {
2233 public: 2214 public:
2234 explicit LStringCharFromCode(LOperand* char_code) { 2215 explicit LStringCharFromCode(LOperand* char_code) {
2235 inputs_[0] = char_code; 2216 inputs_[0] = char_code;
2236 } 2217 }
2237 2218
2238 LOperand* char_code() { return inputs_[0]; } 2219 LOperand* char_code() { return inputs_[0]; }
2239 2220
2240 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code") 2221 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code")
2241 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode) 2222 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode)
2242 }; 2223 };
2243 2224
2244 2225
2245 class LCheckFunction V8_FINAL : public LTemplateInstruction<0, 1, 0> { 2226 class LCheckFunction: public LTemplateInstruction<0, 1, 0> {
2246 public: 2227 public:
2247 explicit LCheckFunction(LOperand* value) { 2228 explicit LCheckFunction(LOperand* value) {
2248 inputs_[0] = value; 2229 inputs_[0] = value;
2249 } 2230 }
2250 2231
2251 LOperand* value() { return inputs_[0]; } 2232 LOperand* value() { return inputs_[0]; }
2252 2233
2253 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function") 2234 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function")
2254 DECLARE_HYDROGEN_ACCESSOR(CheckFunction) 2235 DECLARE_HYDROGEN_ACCESSOR(CheckFunction)
2255 }; 2236 };
2256 2237
2257 2238
2258 class LCheckInstanceType V8_FINAL : public LTemplateInstruction<0, 1, 0> { 2239 class LCheckInstanceType: public LTemplateInstruction<0, 1, 0> {
2259 public: 2240 public:
2260 explicit LCheckInstanceType(LOperand* value) { 2241 explicit LCheckInstanceType(LOperand* value) {
2261 inputs_[0] = value; 2242 inputs_[0] = value;
2262 } 2243 }
2263 2244
2264 LOperand* value() { return inputs_[0]; } 2245 LOperand* value() { return inputs_[0]; }
2265 2246
2266 DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType, "check-instance-type") 2247 DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType, "check-instance-type")
2267 DECLARE_HYDROGEN_ACCESSOR(CheckInstanceType) 2248 DECLARE_HYDROGEN_ACCESSOR(CheckInstanceType)
2268 }; 2249 };
2269 2250
2270 2251
2271 class LCheckMaps V8_FINAL : public LTemplateInstruction<0, 1, 0> { 2252 class LCheckMaps: public LTemplateInstruction<0, 1, 0> {
2272 public: 2253 public:
2273 explicit LCheckMaps(LOperand* value) { 2254 explicit LCheckMaps(LOperand* value) {
2274 inputs_[0] = value; 2255 inputs_[0] = value;
2275 } 2256 }
2276 2257
2277 LOperand* value() { return inputs_[0]; } 2258 LOperand* value() { return inputs_[0]; }
2278 2259
2279 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps") 2260 DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps")
2280 DECLARE_HYDROGEN_ACCESSOR(CheckMaps) 2261 DECLARE_HYDROGEN_ACCESSOR(CheckMaps)
2281 }; 2262 };
2282 2263
2283 2264
2284 class LCheckSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2265 class LCheckSmi: public LTemplateInstruction<1, 1, 0> {
2285 public: 2266 public:
2286 explicit LCheckSmi(LOperand* value) { 2267 explicit LCheckSmi(LOperand* value) {
2287 inputs_[0] = value; 2268 inputs_[0] = value;
2288 } 2269 }
2289 2270
2290 LOperand* value() { return inputs_[0]; } 2271 LOperand* value() { return inputs_[0]; }
2291 2272
2292 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi") 2273 DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi")
2293 }; 2274 };
2294 2275
2295 2276
2296 class LClampDToUint8 V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2277 class LClampDToUint8: public LTemplateInstruction<1, 1, 0> {
2297 public: 2278 public:
2298 explicit LClampDToUint8(LOperand* unclamped) { 2279 explicit LClampDToUint8(LOperand* unclamped) {
2299 inputs_[0] = unclamped; 2280 inputs_[0] = unclamped;
2300 } 2281 }
2301 2282
2302 LOperand* unclamped() { return inputs_[0]; } 2283 LOperand* unclamped() { return inputs_[0]; }
2303 2284
2304 DECLARE_CONCRETE_INSTRUCTION(ClampDToUint8, "clamp-d-to-uint8") 2285 DECLARE_CONCRETE_INSTRUCTION(ClampDToUint8, "clamp-d-to-uint8")
2305 }; 2286 };
2306 2287
2307 2288
2308 class LClampIToUint8 V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2289 class LClampIToUint8: public LTemplateInstruction<1, 1, 0> {
2309 public: 2290 public:
2310 explicit LClampIToUint8(LOperand* unclamped) { 2291 explicit LClampIToUint8(LOperand* unclamped) {
2311 inputs_[0] = unclamped; 2292 inputs_[0] = unclamped;
2312 } 2293 }
2313 2294
2314 LOperand* unclamped() { return inputs_[0]; } 2295 LOperand* unclamped() { return inputs_[0]; }
2315 2296
2316 DECLARE_CONCRETE_INSTRUCTION(ClampIToUint8, "clamp-i-to-uint8") 2297 DECLARE_CONCRETE_INSTRUCTION(ClampIToUint8, "clamp-i-to-uint8")
2317 }; 2298 };
2318 2299
2319 2300
2320 class LClampTToUint8 V8_FINAL : public LTemplateInstruction<1, 1, 1> { 2301 class LClampTToUint8: public LTemplateInstruction<1, 1, 1> {
2321 public: 2302 public:
2322 LClampTToUint8(LOperand* unclamped, 2303 LClampTToUint8(LOperand* unclamped,
2323 LOperand* temp_xmm) { 2304 LOperand* temp_xmm) {
2324 inputs_[0] = unclamped; 2305 inputs_[0] = unclamped;
2325 temps_[0] = temp_xmm; 2306 temps_[0] = temp_xmm;
2326 } 2307 }
2327 2308
2328 LOperand* unclamped() { return inputs_[0]; } 2309 LOperand* unclamped() { return inputs_[0]; }
2329 LOperand* temp_xmm() { return temps_[0]; } 2310 LOperand* temp_xmm() { return temps_[0]; }
2330 2311
2331 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") 2312 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8")
2332 }; 2313 };
2333 2314
2334 2315
2335 class LCheckNonSmi V8_FINAL : public LTemplateInstruction<0, 1, 0> { 2316 class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
2336 public: 2317 public:
2337 explicit LCheckNonSmi(LOperand* value) { 2318 explicit LCheckNonSmi(LOperand* value) {
2338 inputs_[0] = value; 2319 inputs_[0] = value;
2339 } 2320 }
2340 2321
2341 LOperand* value() { return inputs_[0]; } 2322 LOperand* value() { return inputs_[0]; }
2342 2323
2343 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") 2324 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi")
2344 DECLARE_HYDROGEN_ACCESSOR(CheckHeapObject) 2325 DECLARE_HYDROGEN_ACCESSOR(CheckHeapObject)
2345 }; 2326 };
2346 2327
2347 2328
2348 class LAllocate V8_FINAL : public LTemplateInstruction<1, 1, 1> { 2329 class LAllocate: public LTemplateInstruction<1, 1, 1> {
2349 public: 2330 public:
2350 LAllocate(LOperand* size, LOperand* temp) { 2331 LAllocate(LOperand* size, LOperand* temp) {
2351 inputs_[0] = size; 2332 inputs_[0] = size;
2352 temps_[0] = temp; 2333 temps_[0] = temp;
2353 } 2334 }
2354 2335
2355 LOperand* size() { return inputs_[0]; } 2336 LOperand* size() { return inputs_[0]; }
2356 LOperand* temp() { return temps_[0]; } 2337 LOperand* temp() { return temps_[0]; }
2357 2338
2358 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") 2339 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate")
2359 DECLARE_HYDROGEN_ACCESSOR(Allocate) 2340 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2360 }; 2341 };
2361 2342
2362 2343
2363 class LRegExpLiteral V8_FINAL : public LTemplateInstruction<1, 0, 0> { 2344 class LRegExpLiteral: public LTemplateInstruction<1, 0, 0> {
2364 public: 2345 public:
2365 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") 2346 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
2366 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) 2347 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
2367 }; 2348 };
2368 2349
2369 2350
2370 class LFunctionLiteral V8_FINAL : public LTemplateInstruction<1, 0, 0> { 2351 class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> {
2371 public: 2352 public:
2372 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") 2353 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal")
2373 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral) 2354 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral)
2374 }; 2355 };
2375 2356
2376 2357
2377 class LToFastProperties V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2358 class LToFastProperties: public LTemplateInstruction<1, 1, 0> {
2378 public: 2359 public:
2379 explicit LToFastProperties(LOperand* value) { 2360 explicit LToFastProperties(LOperand* value) {
2380 inputs_[0] = value; 2361 inputs_[0] = value;
2381 } 2362 }
2382 2363
2383 LOperand* value() { return inputs_[0]; } 2364 LOperand* value() { return inputs_[0]; }
2384 2365
2385 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") 2366 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties")
2386 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) 2367 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties)
2387 }; 2368 };
2388 2369
2389 2370
2390 class LTypeof V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2371 class LTypeof: public LTemplateInstruction<1, 1, 0> {
2391 public: 2372 public:
2392 explicit LTypeof(LOperand* value) { 2373 explicit LTypeof(LOperand* value) {
2393 inputs_[0] = value; 2374 inputs_[0] = value;
2394 } 2375 }
2395 2376
2396 LOperand* value() { return inputs_[0]; } 2377 LOperand* value() { return inputs_[0]; }
2397 2378
2398 DECLARE_CONCRETE_INSTRUCTION(Typeof, "typeof") 2379 DECLARE_CONCRETE_INSTRUCTION(Typeof, "typeof")
2399 }; 2380 };
2400 2381
2401 2382
2402 class LTypeofIsAndBranch V8_FINAL : public LControlInstruction<1, 0> { 2383 class LTypeofIsAndBranch: public LControlInstruction<1, 0> {
2403 public: 2384 public:
2404 explicit LTypeofIsAndBranch(LOperand* value) { 2385 explicit LTypeofIsAndBranch(LOperand* value) {
2405 inputs_[0] = value; 2386 inputs_[0] = value;
2406 } 2387 }
2407 2388
2408 LOperand* value() { return inputs_[0]; } 2389 LOperand* value() { return inputs_[0]; }
2409 2390
2410 DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch") 2391 DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch")
2411 DECLARE_HYDROGEN_ACCESSOR(TypeofIsAndBranch) 2392 DECLARE_HYDROGEN_ACCESSOR(TypeofIsAndBranch)
2412 2393
2413 Handle<String> type_literal() { return hydrogen()->type_literal(); } 2394 Handle<String> type_literal() { return hydrogen()->type_literal(); }
2414 2395
2415 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2396 virtual void PrintDataTo(StringStream* stream);
2416 }; 2397 };
2417 2398
2418 2399
2419 class LIsConstructCallAndBranch V8_FINAL : public LControlInstruction<0, 1> { 2400 class LIsConstructCallAndBranch: public LControlInstruction<0, 1> {
2420 public: 2401 public:
2421 explicit LIsConstructCallAndBranch(LOperand* temp) { 2402 explicit LIsConstructCallAndBranch(LOperand* temp) {
2422 temps_[0] = temp; 2403 temps_[0] = temp;
2423 } 2404 }
2424 2405
2425 LOperand* temp() { return temps_[0]; } 2406 LOperand* temp() { return temps_[0]; }
2426 2407
2427 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, 2408 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch,
2428 "is-construct-call-and-branch") 2409 "is-construct-call-and-branch")
2429 DECLARE_HYDROGEN_ACCESSOR(IsConstructCallAndBranch) 2410 DECLARE_HYDROGEN_ACCESSOR(IsConstructCallAndBranch)
2430 }; 2411 };
2431 2412
2432 2413
2433 class LOsrEntry V8_FINAL : public LTemplateInstruction<0, 0, 0> { 2414 class LOsrEntry: public LTemplateInstruction<0, 0, 0> {
2434 public: 2415 public:
2435 LOsrEntry() {} 2416 LOsrEntry() {}
2436 2417
2437 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE { 2418 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
2438 return false;
2439 }
2440 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry") 2419 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry")
2441 }; 2420 };
2442 2421
2443 2422
2444 class LStackCheck V8_FINAL : public LTemplateInstruction<0, 0, 0> { 2423 class LStackCheck: public LTemplateInstruction<0, 0, 0> {
2445 public: 2424 public:
2446 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") 2425 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check")
2447 DECLARE_HYDROGEN_ACCESSOR(StackCheck) 2426 DECLARE_HYDROGEN_ACCESSOR(StackCheck)
2448 2427
2449 Label* done_label() { return &done_label_; } 2428 Label* done_label() { return &done_label_; }
2450 2429
2451 private: 2430 private:
2452 Label done_label_; 2431 Label done_label_;
2453 }; 2432 };
2454 2433
2455 2434
2456 class LForInPrepareMap V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2435 class LForInPrepareMap: public LTemplateInstruction<1, 1, 0> {
2457 public: 2436 public:
2458 explicit LForInPrepareMap(LOperand* object) { 2437 explicit LForInPrepareMap(LOperand* object) {
2459 inputs_[0] = object; 2438 inputs_[0] = object;
2460 } 2439 }
2461 2440
2462 LOperand* object() { return inputs_[0]; } 2441 LOperand* object() { return inputs_[0]; }
2463 2442
2464 DECLARE_CONCRETE_INSTRUCTION(ForInPrepareMap, "for-in-prepare-map") 2443 DECLARE_CONCRETE_INSTRUCTION(ForInPrepareMap, "for-in-prepare-map")
2465 }; 2444 };
2466 2445
2467 2446
2468 class LForInCacheArray V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2447 class LForInCacheArray: public LTemplateInstruction<1, 1, 0> {
2469 public: 2448 public:
2470 explicit LForInCacheArray(LOperand* map) { 2449 explicit LForInCacheArray(LOperand* map) {
2471 inputs_[0] = map; 2450 inputs_[0] = map;
2472 } 2451 }
2473 2452
2474 LOperand* map() { return inputs_[0]; } 2453 LOperand* map() { return inputs_[0]; }
2475 2454
2476 DECLARE_CONCRETE_INSTRUCTION(ForInCacheArray, "for-in-cache-array") 2455 DECLARE_CONCRETE_INSTRUCTION(ForInCacheArray, "for-in-cache-array")
2477 2456
2478 int idx() { 2457 int idx() {
2479 return HForInCacheArray::cast(this->hydrogen_value())->idx(); 2458 return HForInCacheArray::cast(this->hydrogen_value())->idx();
2480 } 2459 }
2481 }; 2460 };
2482 2461
2483 2462
2484 class LCheckMapValue V8_FINAL : public LTemplateInstruction<0, 2, 0> { 2463 class LCheckMapValue: public LTemplateInstruction<0, 2, 0> {
2485 public: 2464 public:
2486 LCheckMapValue(LOperand* value, LOperand* map) { 2465 LCheckMapValue(LOperand* value, LOperand* map) {
2487 inputs_[0] = value; 2466 inputs_[0] = value;
2488 inputs_[1] = map; 2467 inputs_[1] = map;
2489 } 2468 }
2490 2469
2491 LOperand* value() { return inputs_[0]; } 2470 LOperand* value() { return inputs_[0]; }
2492 LOperand* map() { return inputs_[1]; } 2471 LOperand* map() { return inputs_[1]; }
2493 2472
2494 DECLARE_CONCRETE_INSTRUCTION(CheckMapValue, "check-map-value") 2473 DECLARE_CONCRETE_INSTRUCTION(CheckMapValue, "check-map-value")
2495 }; 2474 };
2496 2475
2497 2476
2498 class LLoadFieldByIndex V8_FINAL : public LTemplateInstruction<1, 2, 0> { 2477 class LLoadFieldByIndex: public LTemplateInstruction<1, 2, 0> {
2499 public: 2478 public:
2500 LLoadFieldByIndex(LOperand* object, LOperand* index) { 2479 LLoadFieldByIndex(LOperand* object, LOperand* index) {
2501 inputs_[0] = object; 2480 inputs_[0] = object;
2502 inputs_[1] = index; 2481 inputs_[1] = index;
2503 } 2482 }
2504 2483
2505 LOperand* object() { return inputs_[0]; } 2484 LOperand* object() { return inputs_[0]; }
2506 LOperand* index() { return inputs_[1]; } 2485 LOperand* index() { return inputs_[1]; }
2507 2486
2508 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") 2487 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index")
2509 }; 2488 };
2510 2489
2511 2490
2512 class LChunkBuilder; 2491 class LChunkBuilder;
2513 class LPlatformChunk V8_FINAL : public LChunk { 2492 class LPlatformChunk: public LChunk {
2514 public: 2493 public:
2515 LPlatformChunk(CompilationInfo* info, HGraph* graph) 2494 LPlatformChunk(CompilationInfo* info, HGraph* graph)
2516 : LChunk(info, graph) { } 2495 : LChunk(info, graph) { }
2517 2496
2518 int GetNextSpillIndex(bool is_double); 2497 int GetNextSpillIndex(bool is_double);
2519 LOperand* GetNextSpillSlot(bool is_double); 2498 LOperand* GetNextSpillSlot(bool is_double);
2520 }; 2499 };
2521 2500
2522 2501
2523 class LChunkBuilder V8_FINAL BASE_EMBEDDED { 2502 class LChunkBuilder BASE_EMBEDDED {
2524 public: 2503 public:
2525 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator) 2504 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator)
2526 : chunk_(NULL), 2505 : chunk_(NULL),
2527 info_(info), 2506 info_(info),
2528 graph_(graph), 2507 graph_(graph),
2529 zone_(graph->zone()), 2508 zone_(graph->zone()),
2530 status_(UNUSED), 2509 status_(UNUSED),
2531 current_instruction_(NULL), 2510 current_instruction_(NULL),
2532 current_block_(NULL), 2511 current_block_(NULL),
2533 next_block_(NULL), 2512 next_block_(NULL),
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
2690 2669
2691 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2670 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2692 }; 2671 };
2693 2672
2694 #undef DECLARE_HYDROGEN_ACCESSOR 2673 #undef DECLARE_HYDROGEN_ACCESSOR
2695 #undef DECLARE_CONCRETE_INSTRUCTION 2674 #undef DECLARE_CONCRETE_INSTRUCTION
2696 2675
2697 } } // namespace v8::int 2676 } } // namespace v8::int
2698 2677
2699 #endif // V8_X64_LITHIUM_X64_H_ 2678 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-gap-resolver-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698