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

Side by Side Diff: src/codegen-arm.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.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 19 matching lines...) Expand all
30 #include "bootstrapper.h" 30 #include "bootstrapper.h"
31 #include "codegen-inl.h" 31 #include "codegen-inl.h"
32 #include "debug.h" 32 #include "debug.h"
33 #include "prettyprinter.h" 33 #include "prettyprinter.h"
34 #include "scopeinfo.h" 34 #include "scopeinfo.h"
35 #include "scopes.h" 35 #include "scopes.h"
36 #include "runtime.h" 36 #include "runtime.h"
37 37
38 namespace v8 { namespace internal { 38 namespace v8 { namespace internal {
39 39
40 DEFINE_bool(trace, false, "trace function calls");
41 DECLARE_bool(debug_info);
42 DECLARE_bool(debug_code);
43
44 #ifdef ENABLE_DISASSEMBLER
45 DEFINE_bool(print_code, false, "print generated code");
46 #endif
47
48 #ifdef DEBUG
49 DECLARE_bool(gc_greedy);
50 DEFINE_bool(trace_codegen, false,
51 "print name of functions for which code is generated");
52 DEFINE_bool(print_builtin_code, false, "print generated code for builtins");
53 DEFINE_bool(print_source, false, "pretty print source code");
54 DEFINE_bool(print_builtin_source, false,
55 "pretty print source code for builtins");
56 DEFINE_bool(print_ast, false, "print source AST");
57 DEFINE_bool(print_builtin_ast, false, "print source AST for builtins");
58 DEFINE_bool(trace_calls, false, "trace calls");
59 DEFINE_bool(trace_builtin_calls, false, "trace builtins calls");
60 DEFINE_string(stop_at, "", "function name where to insert a breakpoint");
61 #endif // DEBUG
62
63
64 DEFINE_bool(check_stack, true,
65 "check stack for overflow, interrupt, breakpoint");
66
67
68 class ArmCodeGenerator; 40 class ArmCodeGenerator;
69 41
70 42
71 // ----------------------------------------------------------------------------- 43 // -----------------------------------------------------------------------------
72 // Reference support 44 // Reference support
73 45
74 // A reference is a C++ stack-allocated object that keeps an ECMA 46 // A reference is a C++ stack-allocated object that keeps an ECMA
75 // reference on the execution stack while in scope. For variables 47 // reference on the execution stack while in scope. For variables
76 // the reference is empty, indicating that it isn't necessary to 48 // the reference is empty, indicating that it isn't necessary to
77 // store state on the stack for keeping track of references to those. 49 // store state on the stack for keeping track of references to those.
(...skipping 4590 matching lines...) Expand 10 before | Expand all | Expand 10 after
4668 bool is_eval) { 4640 bool is_eval) {
4669 Handle<Code> code = ArmCodeGenerator::MakeCode(fun, script, is_eval); 4641 Handle<Code> code = ArmCodeGenerator::MakeCode(fun, script, is_eval);
4670 if (!code.is_null()) { 4642 if (!code.is_null()) {
4671 Counters::total_compiled_code_size.Increment(code->instruction_size()); 4643 Counters::total_compiled_code_size.Increment(code->instruction_size());
4672 } 4644 }
4673 return code; 4645 return code;
4674 } 4646 }
4675 4647
4676 4648
4677 } } // namespace v8::internal 4649 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698