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

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

Issue 16381006: Change PC for OSR entries to point to something more sensible (i.e. the first UnknownOsrValue), rem… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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
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 2445 matching lines...) Expand 10 before | Expand all | Expand 10 after
2456 2456
2457 LOperand* object() { return inputs_[0]; } 2457 LOperand* object() { return inputs_[0]; }
2458 LOperand* key() { return inputs_[1]; } 2458 LOperand* key() { return inputs_[1]; }
2459 2459
2460 DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property") 2460 DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property")
2461 }; 2461 };
2462 2462
2463 2463
2464 class LOsrEntry: public LTemplateInstruction<0, 0, 0> { 2464 class LOsrEntry: public LTemplateInstruction<0, 0, 0> {
2465 public: 2465 public:
2466 LOsrEntry(); 2466 LOsrEntry() {}
2467 2467
2468 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; } 2468 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
2469 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry") 2469 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry")
2470
2471 LOperand** SpilledRegisterArray() { return register_spills_; }
2472 LOperand** SpilledDoubleRegisterArray() { return double_register_spills_; }
2473
2474 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand);
2475 void MarkSpilledDoubleRegister(int allocation_index,
2476 LOperand* spill_operand);
2477
2478 private:
2479 // Arrays of spill slot operands for registers with an assigned spill
2480 // slot, i.e., that must also be restored to the spill slot on OSR entry.
2481 // NULL if the register has no assigned spill slot. Indexed by allocation
2482 // index.
2483 LOperand* register_spills_[Register::kMaxNumAllocatableRegisters];
2484 LOperand* double_register_spills_[
2485 DoubleRegister::kMaxNumAllocatableRegisters];
2486 }; 2470 };
2487 2471
2488 2472
2489 class LStackCheck: public LTemplateInstruction<0, 0, 0> { 2473 class LStackCheck: public LTemplateInstruction<0, 0, 0> {
2490 public: 2474 public:
2491 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") 2475 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check")
2492 DECLARE_HYDROGEN_ACCESSOR(StackCheck) 2476 DECLARE_HYDROGEN_ACCESSOR(StackCheck)
2493 2477
2494 Label* done_label() { return &done_label_; } 2478 Label* done_label() { return &done_label_; }
2495 2479
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
2735 2719
2736 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2720 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2737 }; 2721 };
2738 2722
2739 #undef DECLARE_HYDROGEN_ACCESSOR 2723 #undef DECLARE_HYDROGEN_ACCESSOR
2740 #undef DECLARE_CONCRETE_INSTRUCTION 2724 #undef DECLARE_CONCRETE_INSTRUCTION
2741 2725
2742 } } // namespace v8::int 2726 } } // namespace v8::int
2743 2727
2744 #endif // V8_X64_LITHIUM_X64_H_ 2728 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698