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

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

Issue 1317383002: Crankshaft is now able to compile top level code even if there is a ScriptContext. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 5 years, 3 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
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_X64_LITHIUM_X64_H_ 5 #ifndef V8_X64_LITHIUM_X64_H_
6 #define V8_X64_LITHIUM_X64_H_ 6 #define V8_X64_LITHIUM_X64_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 V(ModByPowerOf2I) \ 122 V(ModByPowerOf2I) \
123 V(ModI) \ 123 V(ModI) \
124 V(MulI) \ 124 V(MulI) \
125 V(NumberTagD) \ 125 V(NumberTagD) \
126 V(NumberTagI) \ 126 V(NumberTagI) \
127 V(NumberTagU) \ 127 V(NumberTagU) \
128 V(NumberUntagD) \ 128 V(NumberUntagD) \
129 V(OsrEntry) \ 129 V(OsrEntry) \
130 V(Parameter) \ 130 V(Parameter) \
131 V(Power) \ 131 V(Power) \
132 V(Prologue) \
132 V(PushArgument) \ 133 V(PushArgument) \
133 V(RegExpLiteral) \ 134 V(RegExpLiteral) \
134 V(Return) \ 135 V(Return) \
135 V(SeqStringGetChar) \ 136 V(SeqStringGetChar) \
136 V(SeqStringSetChar) \ 137 V(SeqStringSetChar) \
137 V(ShiftI) \ 138 V(ShiftI) \
138 V(SmiTag) \ 139 V(SmiTag) \
139 V(SmiUntag) \ 140 V(SmiUntag) \
140 V(StackCheck) \ 141 V(StackCheck) \
141 V(StoreCodeEntry) \ 142 V(StoreCodeEntry) \
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 void PrintDataTo(StringStream* stream) override; 387 void PrintDataTo(StringStream* stream) override;
387 bool IsControl() const override { return true; } 388 bool IsControl() const override { return true; }
388 389
389 int block_id() const { return block_->block_id(); } 390 int block_id() const { return block_->block_id(); }
390 391
391 private: 392 private:
392 HBasicBlock* block_; 393 HBasicBlock* block_;
393 }; 394 };
394 395
395 396
397 class LPrologue final : public LTemplateInstruction<0, 0, 0> {
398 public:
399 DECLARE_CONCRETE_INSTRUCTION(Prologue, "prologue")
400 };
401
402
396 class LLazyBailout final : public LTemplateInstruction<0, 0, 0> { 403 class LLazyBailout final : public LTemplateInstruction<0, 0, 0> {
397 public: 404 public:
398 LLazyBailout() : gap_instructions_size_(0) { } 405 LLazyBailout() : gap_instructions_size_(0) { }
399 406
400 DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout") 407 DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout")
401 408
402 void set_gap_instructions_size(int gap_instructions_size) { 409 void set_gap_instructions_size(int gap_instructions_size) {
403 gap_instructions_size_ = gap_instructions_size; 410 gap_instructions_size_ = gap_instructions_size;
404 } 411 }
405 int gap_instructions_size() { return gap_instructions_size_; } 412 int gap_instructions_size() { return gap_instructions_size_; }
(...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after
2867 2874
2868 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2875 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2869 }; 2876 };
2870 2877
2871 #undef DECLARE_HYDROGEN_ACCESSOR 2878 #undef DECLARE_HYDROGEN_ACCESSOR
2872 #undef DECLARE_CONCRETE_INSTRUCTION 2879 #undef DECLARE_CONCRETE_INSTRUCTION
2873 2880
2874 } } // namespace v8::int 2881 } } // namespace v8::int
2875 2882
2876 #endif // V8_X64_LITHIUM_X64_H_ 2883 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698