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

Side by Side Diff: src/codegen-ia32.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-arm.cc ('k') | src/compiler.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 DEFINE_bool(defer_negation, true, "defer negation operation");
42 DECLARE_bool(debug_info);
43 DECLARE_bool(debug_code);
44
45 #ifdef ENABLE_DISASSEMBLER
46 DEFINE_bool(print_code, false, "print generated code");
47 #endif
48
49 #ifdef DEBUG
50 DECLARE_bool(gc_greedy);
51 DEFINE_bool(trace_codegen, false,
52 "print name of functions for which code is generated");
53 DEFINE_bool(print_builtin_code, false, "print generated code for builtins");
54 DEFINE_bool(print_source, false, "pretty print source code");
55 DEFINE_bool(print_builtin_source, false,
56 "pretty print source code for builtins");
57 DEFINE_bool(print_ast, false, "print source AST");
58 DEFINE_bool(print_builtin_ast, false, "print source AST for builtins");
59 DEFINE_bool(trace_calls, false, "trace calls");
60 DEFINE_bool(trace_builtin_calls, false, "trace builtins calls");
61 DEFINE_string(stop_at, "", "function name where to insert a breakpoint");
62 #endif // DEBUG
63
64
65 DEFINE_bool(check_stack, true,
66 "check stack for overflow, interrupt, breakpoint");
67
68 #define TOS (Operand(esp, 0)) 40 #define TOS (Operand(esp, 0))
69 41
70 42
71 class Ia32CodeGenerator; 43 class Ia32CodeGenerator;
72 44
73 // Mode to overwrite BinaryExpression values. 45 // Mode to overwrite BinaryExpression values.
74 enum OverwriteMode { NO_OVERWRITE, OVERWRITE_LEFT, OVERWRITE_RIGHT }; 46 enum OverwriteMode { NO_OVERWRITE, OVERWRITE_LEFT, OVERWRITE_RIGHT };
75 47
76 48
77 // ----------------------------------------------------------------------------- 49 // -----------------------------------------------------------------------------
(...skipping 5419 matching lines...) Expand 10 before | Expand all | Expand 10 after
5497 bool is_eval) { 5469 bool is_eval) {
5498 Handle<Code> code = Ia32CodeGenerator::MakeCode(fun, script, is_eval); 5470 Handle<Code> code = Ia32CodeGenerator::MakeCode(fun, script, is_eval);
5499 if (!code.is_null()) { 5471 if (!code.is_null()) {
5500 Counters::total_compiled_code_size.Increment(code->instruction_size()); 5472 Counters::total_compiled_code_size.Increment(code->instruction_size());
5501 } 5473 }
5502 return code; 5474 return code;
5503 } 5475 }
5504 5476
5505 5477
5506 } } // namespace v8::internal 5478 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen-arm.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698