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

Side by Side Diff: src/lithium.h

Issue 9304001: Implement inlining of constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed moar comments by Vyacheslav Egorov. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 ZoneList<LOperand*> pointer_operands_; 432 ZoneList<LOperand*> pointer_operands_;
433 ZoneList<LOperand*> untagged_operands_; 433 ZoneList<LOperand*> untagged_operands_;
434 int position_; 434 int position_;
435 int lithium_position_; 435 int lithium_position_;
436 }; 436 };
437 437
438 438
439 class LEnvironment: public ZoneObject { 439 class LEnvironment: public ZoneObject {
440 public: 440 public:
441 LEnvironment(Handle<JSFunction> closure, 441 LEnvironment(Handle<JSFunction> closure,
442 bool is_arguments_adaptor, 442 FrameType frame_type,
443 int ast_id, 443 int ast_id,
444 int parameter_count, 444 int parameter_count,
445 int argument_count, 445 int argument_count,
446 int value_count, 446 int value_count,
447 LEnvironment* outer) 447 LEnvironment* outer)
448 : closure_(closure), 448 : closure_(closure),
449 is_arguments_adaptor_(is_arguments_adaptor), 449 frame_type_(frame_type),
450 arguments_stack_height_(argument_count), 450 arguments_stack_height_(argument_count),
451 deoptimization_index_(Safepoint::kNoDeoptimizationIndex), 451 deoptimization_index_(Safepoint::kNoDeoptimizationIndex),
452 translation_index_(-1), 452 translation_index_(-1),
453 ast_id_(ast_id), 453 ast_id_(ast_id),
454 parameter_count_(parameter_count), 454 parameter_count_(parameter_count),
455 pc_offset_(-1), 455 pc_offset_(-1),
456 values_(value_count), 456 values_(value_count),
457 representations_(value_count), 457 representations_(value_count),
458 spilled_registers_(NULL), 458 spilled_registers_(NULL),
459 spilled_double_registers_(NULL), 459 spilled_double_registers_(NULL),
460 outer_(outer) { 460 outer_(outer) {
461 } 461 }
462 462
463 Handle<JSFunction> closure() const { return closure_; } 463 Handle<JSFunction> closure() const { return closure_; }
464 FrameType frame_type() const { return frame_type_; }
464 int arguments_stack_height() const { return arguments_stack_height_; } 465 int arguments_stack_height() const { return arguments_stack_height_; }
465 int deoptimization_index() const { return deoptimization_index_; } 466 int deoptimization_index() const { return deoptimization_index_; }
466 int translation_index() const { return translation_index_; } 467 int translation_index() const { return translation_index_; }
467 int ast_id() const { return ast_id_; } 468 int ast_id() const { return ast_id_; }
468 int parameter_count() const { return parameter_count_; } 469 int parameter_count() const { return parameter_count_; }
469 int pc_offset() const { return pc_offset_; } 470 int pc_offset() const { return pc_offset_; }
470 LOperand** spilled_registers() const { return spilled_registers_; } 471 LOperand** spilled_registers() const { return spilled_registers_; }
471 LOperand** spilled_double_registers() const { 472 LOperand** spilled_double_registers() const {
472 return spilled_double_registers_; 473 return spilled_double_registers_;
473 } 474 }
(...skipping 22 matching lines...) Expand all
496 } 497 }
497 498
498 void SetSpilledRegisters(LOperand** registers, 499 void SetSpilledRegisters(LOperand** registers,
499 LOperand** double_registers) { 500 LOperand** double_registers) {
500 spilled_registers_ = registers; 501 spilled_registers_ = registers;
501 spilled_double_registers_ = double_registers; 502 spilled_double_registers_ = double_registers;
502 } 503 }
503 504
504 void PrintTo(StringStream* stream); 505 void PrintTo(StringStream* stream);
505 506
506 bool is_arguments_adaptor() const { return is_arguments_adaptor_; }
507
508 private: 507 private:
509 Handle<JSFunction> closure_; 508 Handle<JSFunction> closure_;
510 bool is_arguments_adaptor_; 509 FrameType frame_type_;
511 int arguments_stack_height_; 510 int arguments_stack_height_;
512 int deoptimization_index_; 511 int deoptimization_index_;
513 int translation_index_; 512 int translation_index_;
514 int ast_id_; 513 int ast_id_;
515 int parameter_count_; 514 int parameter_count_;
516 int pc_offset_; 515 int pc_offset_;
517 ZoneList<LOperand*> values_; 516 ZoneList<LOperand*> values_;
518 ZoneList<Representation> representations_; 517 ZoneList<Representation> representations_;
519 518
520 // Allocation index indexed arrays of spill slot operands for registers 519 // Allocation index indexed arrays of spill slot operands for registers
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 ShallowIterator current_iterator_; 599 ShallowIterator current_iterator_;
601 }; 600 };
602 601
603 602
604 int ElementsKindToShiftSize(ElementsKind elements_kind); 603 int ElementsKindToShiftSize(ElementsKind elements_kind);
605 604
606 605
607 } } // namespace v8::internal 606 } } // namespace v8::internal
608 607
609 #endif // V8_LITHIUM_H_ 608 #endif // V8_LITHIUM_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698