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

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

Issue 6118002: X64 Crankshaft: Implement some methods in LInstruction, update mjsunit test e... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 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 | « no previous file | test/mjsunit/mjsunit.status » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 11 matching lines...) Expand all
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_X64_LITHIUM_X64_H_ 28 #ifndef V8_X64_LITHIUM_X64_H_
29 #define V8_X64_LITHIUM_X64_H_ 29 #define V8_X64_LITHIUM_X64_H_
30 30
31 #include "hydrogen.h" 31 #include "hydrogen.h"
32 #include "lithium-allocator.h" 32 #include "lithium-allocator.h"
33 #include "lithium.h"
Rico 2011/01/07 09:36:07 Do we need this include?
William Hesse 2011/01/07 09:46:09 This is part of a different changelist, and will b
33 #include "safepoint-table.h" 34 #include "safepoint-table.h"
34 35
35 namespace v8 { 36 namespace v8 {
36 namespace internal { 37 namespace internal {
37 38
38 // Forward declarations. 39 // Forward declarations.
39 class LCodeGen; 40 class LCodeGen;
40 class LEnvironment; 41 class LEnvironment;
41 class Translation; 42 class Translation;
42 43
43 class LInstruction: public ZoneObject { 44 class LInstruction: public ZoneObject {
44 public: 45 public:
45 LInstruction() { } 46 LInstruction() { }
46 virtual ~LInstruction() { } 47 virtual ~LInstruction() { }
47 48
49 virtual void PrintTo(StringStream* stream) const { UNIMPLEMENTED(); }
50 virtual void PrintDataTo(StringStream* stream) const { }
51
48 // Predicates should be generated by macro as in lithium-ia32.h. 52 // Predicates should be generated by macro as in lithium-ia32.h.
49 virtual bool IsLabel() const { 53 virtual bool IsLabel() const {
50 UNIMPLEMENTED(); 54 UNIMPLEMENTED();
51 return false; 55 return false;
52 } 56 }
53 virtual bool IsOsrEntry() const { 57 virtual bool IsOsrEntry() const {
54 UNIMPLEMENTED(); 58 UNIMPLEMENTED();
55 return false; 59 return false;
56 } 60 }
57 61
58 LPointerMap* pointer_map() const { 62 void set_environment(LEnvironment* env) { environment_.set(env); }
59 UNIMPLEMENTED(); 63 LEnvironment* environment() const { return environment_.get(); }
60 return NULL; 64 bool HasEnvironment() const { return environment_.is_set(); }
65
66 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); }
67 LPointerMap* pointer_map() const { return pointer_map_.get(); }
68 bool HasPointerMap() const { return pointer_map_.is_set(); }
69
70 void set_result(LOperand* operand) { result_.set(operand); }
71 LOperand* result() const { return result_.get(); }
72 bool HasResult() const { return result_.is_set(); }
73
74 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; }
75 HValue* hydrogen_value() const { return hydrogen_value_; }
76
77 void set_deoptimization_environment(LEnvironment* env) {
78 deoptimization_environment_.set(env);
61 } 79 }
62 80 LEnvironment* deoptimization_environment() const {
63 bool HasPointerMap() const { 81 return deoptimization_environment_.get();
64 UNIMPLEMENTED();
65 return false;
66 } 82 }
67 83 bool HasDeoptimizationEnvironment() const {
68 virtual void PrintTo(StringStream* stream) const { UNIMPLEMENTED(); } 84 return deoptimization_environment_.is_set();
85 }
69 86
70 private: 87 private:
71 SetOncePointer<LEnvironment> environment_; 88 SetOncePointer<LEnvironment> environment_;
72 SetOncePointer<LPointerMap> pointer_map_; 89 SetOncePointer<LPointerMap> pointer_map_;
73 SetOncePointer<LOperand> result_; 90 SetOncePointer<LOperand> result_;
74 HValue* hydrogen_value_; 91 HValue* hydrogen_value_;
75 SetOncePointer<LEnvironment> deoptimization_environment_; 92 SetOncePointer<LEnvironment> deoptimization_environment_;
76 }; 93 };
77 94
78 95
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 LInstruction* instructions_pending_deoptimization_environment_; 387 LInstruction* instructions_pending_deoptimization_environment_;
371 int pending_deoptimization_ast_id_; 388 int pending_deoptimization_ast_id_;
372 389
373 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 390 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
374 }; 391 };
375 392
376 393
377 } } // namespace v8::internal 394 } } // namespace v8::internal
378 395
379 #endif // V8_X64_LITHIUM_X64_H_ 396 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698