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

Side by Side Diff: src/codegen-ia32.h

Issue 16412: Experimental: push the new code generator infrastructure into the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 12 years 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 | src/codegen-ia32.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Generate code to push the value of the reference on top of the 80 // Generate code to push the value of the reference on top of the
81 // expression stack. The reference is expected to be already on top of 81 // expression stack. The reference is expected to be already on top of
82 // the expression stack, and it is left in place with its value above it. 82 // the expression stack, and it is left in place with its value above it.
83 void GetValue(TypeofState typeof_state); 83 void GetValue(TypeofState typeof_state);
84 84
85 // Generate code to push the value of a reference on top of the expression 85 // Generate code to push the value of a reference on top of the expression
86 // stack and then spill the stack frame. This function is used temporarily 86 // stack and then spill the stack frame. This function is used temporarily
87 // while the code generator is being transformed. 87 // while the code generator is being transformed.
88 inline void GetValueAndSpill(TypeofState typeof_state); 88 inline void GetValueAndSpill(TypeofState typeof_state);
89 89
90 // Like GetValue except that the slot is expected to be written to before
91 // being read from again. Thae value of the reference may be invalidated,
92 // causign subsequent attempts to read it to fail.
93 void TakeValue(TypeofState typeof_state);
94
90 // Generate code to store the value on top of the expression stack in the 95 // Generate code to store the value on top of the expression stack in the
91 // reference. The reference is expected to be immediately below the value 96 // reference. The reference is expected to be immediately below the value
92 // on the expression stack. The stored value is left in place (with the 97 // on the expression stack. The stored value is left in place (with the
93 // reference intact below it) to support chained assignments. 98 // reference intact below it) to support chained assignments.
94 void SetValue(InitState init_state); 99 void SetValue(InitState init_state);
95 100
96 private: 101 private:
97 CodeGenerator* cgen_; 102 CodeGenerator* cgen_;
98 Expression* expression_; 103 Expression* expression_;
99 Type type_; 104 Type type_;
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 cgen_->set_in_spilled_code(false); 504 cgen_->set_in_spilled_code(false);
500 GetValue(typeof_state); 505 GetValue(typeof_state);
501 cgen_->frame()->SpillAll(); 506 cgen_->frame()->SpillAll();
502 cgen_->set_in_spilled_code(true); 507 cgen_->set_in_spilled_code(true);
503 } 508 }
504 509
505 510
506 } } // namespace v8::internal 511 } } // namespace v8::internal
507 512
508 #endif // V8_CODEGEN_IA32_H_ 513 #endif // V8_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | src/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698