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

Side by Side Diff: src/codegen.cc

Issue 1935: New static flags system (Closed)
Patch Set: Merge, again. Created 12 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/codegen.h ('k') | src/codegen-arm.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 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-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 16 matching lines...) Expand all
27 27
28 #include "v8.h" 28 #include "v8.h"
29 29
30 #include "codegen-inl.h" 30 #include "codegen-inl.h"
31 #include "debug.h" 31 #include "debug.h"
32 #include "runtime.h" 32 #include "runtime.h"
33 #include "stub-cache.h" 33 #include "stub-cache.h"
34 34
35 namespace v8 { namespace internal { 35 namespace v8 { namespace internal {
36 36
37
38 DEFINE_bool(lazy, true, "use lazy compilation");
39 DEFINE_bool(debug_info, true, "add debug information to compiled functions");
40
41
42 DeferredCode::DeferredCode(CodeGenerator* generator) 37 DeferredCode::DeferredCode(CodeGenerator* generator)
43 : masm_(generator->masm()), 38 : masm_(generator->masm()),
44 generator_(generator), 39 generator_(generator),
45 position_(masm_->last_position()), 40 position_(masm_->last_position()),
46 position_is_statement_(masm_->last_position_is_statement()) { 41 position_is_statement_(masm_->last_position_is_statement()) {
47 generator->AddDeferred(this); 42 generator->AddDeferred(this);
48 #ifdef DEBUG 43 #ifdef DEBUG
49 comment_ = ""; 44 comment_ = "";
50 #endif 45 #endif
51 } 46 }
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 return Runtime::FunctionForId(id_)->stub_name; 274 return Runtime::FunctionForId(id_)->stub_name;
280 } 275 }
281 276
282 277
283 void RuntimeStub::Generate(MacroAssembler* masm) { 278 void RuntimeStub::Generate(MacroAssembler* masm) {
284 masm->TailCallRuntime(ExternalReference(id_), num_arguments_); 279 masm->TailCallRuntime(ExternalReference(id_), num_arguments_);
285 } 280 }
286 281
287 282
288 } } // namespace v8::internal 283 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen.h ('k') | src/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698