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

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

Issue 18096: Experimental: merge from bleeding_edge. Merge up to and including... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 11 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 | « src/codegen-arm.cc ('k') | 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // CodeGenerator 164 // CodeGenerator
165 165
166 class CodeGenerator: public AstVisitor { 166 class CodeGenerator: public AstVisitor {
167 public: 167 public:
168 // Takes a function literal, generates code for it. This function should only 168 // Takes a function literal, generates code for it. This function should only
169 // be called by compiler.cc. 169 // be called by compiler.cc.
170 static Handle<Code> MakeCode(FunctionLiteral* fun, 170 static Handle<Code> MakeCode(FunctionLiteral* fun,
171 Handle<Script> script, 171 Handle<Script> script,
172 bool is_eval); 172 bool is_eval);
173 173
174 #ifdef ENABLE_LOGGING_AND_PROFILING
174 static bool ShouldGenerateLog(Expression* type); 175 static bool ShouldGenerateLog(Expression* type);
176 #endif
175 177
176 static void SetFunctionInfo(Handle<JSFunction> fun, 178 static void SetFunctionInfo(Handle<JSFunction> fun,
177 int length, 179 int length,
178 int function_token_position, 180 int function_token_position,
179 int start_position, 181 int start_position,
180 int end_position, 182 int end_position,
181 bool is_expression, 183 bool is_expression,
182 bool is_toplevel, 184 bool is_toplevel,
183 Handle<Script> script); 185 Handle<Script> script);
184 186
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 cgen_->set_in_spilled_code(false); 516 cgen_->set_in_spilled_code(false);
515 GetValue(typeof_state); 517 GetValue(typeof_state);
516 cgen_->frame()->SpillAll(); 518 cgen_->frame()->SpillAll();
517 cgen_->set_in_spilled_code(true); 519 cgen_->set_in_spilled_code(true);
518 } 520 }
519 521
520 522
521 } } // namespace v8::internal 523 } } // namespace v8::internal
522 524
523 #endif // V8_CODEGEN_IA32_H_ 525 #endif // V8_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/codegen-arm.cc ('k') | src/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698