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

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

Issue 16573: Fixed build with no ENABLE_LOGGING_AND_PROFILING (Closed)
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
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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // CodeGenerator 194 // CodeGenerator
195 195
196 class CodeGenerator: public AstVisitor { 196 class CodeGenerator: public AstVisitor {
197 public: 197 public:
198 // Takes a function literal, generates code for it. This function should only 198 // Takes a function literal, generates code for it. This function should only
199 // be called by compiler.cc. 199 // be called by compiler.cc.
200 static Handle<Code> MakeCode(FunctionLiteral* fun, 200 static Handle<Code> MakeCode(FunctionLiteral* fun,
201 Handle<Script> script, 201 Handle<Script> script,
202 bool is_eval); 202 bool is_eval);
203 203
204 #ifdef ENABLE_LOGGING_AND_PROFILING
204 static bool ShouldGenerateLog(Expression* type); 205 static bool ShouldGenerateLog(Expression* type);
206 #endif
205 207
206 static void SetFunctionInfo(Handle<JSFunction> fun, 208 static void SetFunctionInfo(Handle<JSFunction> fun,
207 int length, 209 int length,
208 int function_token_position, 210 int function_token_position,
209 int start_position, 211 int start_position,
210 int end_position, 212 int end_position,
211 bool is_expression, 213 bool is_expression,
212 bool is_toplevel, 214 bool is_toplevel,
213 Handle<Script> script); 215 Handle<Script> script);
214 216
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 friend class VirtualFrame; 434 friend class VirtualFrame;
433 friend class Reference; 435 friend class Reference;
434 436
435 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 437 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
436 }; 438 };
437 439
438 440
439 } } // namespace v8::internal 441 } } // namespace v8::internal
440 442
441 #endif // V8_CODEGEN_IA32_H_ 443 #endif // V8_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/codegen-arm.cc ('k') | src/codegen-ia32.cc » ('j') | src/log.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698