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/macro-assembler-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/macro-assembler-arm.cc ('k') | src/mark-compact.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 17 matching lines...) Expand all
28 #include "v8.h" 28 #include "v8.h"
29 29
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 "runtime.h" 33 #include "runtime.h"
34 #include "serialize.h" 34 #include "serialize.h"
35 35
36 namespace v8 { namespace internal { 36 namespace v8 { namespace internal {
37 37
38 DECLARE_bool(debug_code);
39 DEFINE_bool(native_code_counters, false,
40 "generate extra code for manipulating stats counters");
41
42
43 MacroAssembler::MacroAssembler(void* buffer, int size) 38 MacroAssembler::MacroAssembler(void* buffer, int size)
44 : Assembler(buffer, size), 39 : Assembler(buffer, size),
45 unresolved_(0), 40 unresolved_(0),
46 generating_stub_(false), 41 generating_stub_(false),
47 allow_stub_calls_(true) { 42 allow_stub_calls_(true) {
48 } 43 }
49 44
50 45
51 static void RecordWriteHelper(MacroAssembler* masm, 46 static void RecordWriteHelper(MacroAssembler* masm,
52 Register object, 47 Register object,
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 // Indicate that code has changed. 814 // Indicate that code has changed.
820 CPU::FlushICache(address_, size_); 815 CPU::FlushICache(address_, size_);
821 816
822 // Check that the code was patched as expected. 817 // Check that the code was patched as expected.
823 ASSERT(masm_.pc_ == address_ + size_); 818 ASSERT(masm_.pc_ == address_ + size_);
824 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 819 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
825 } 820 }
826 821
827 822
828 } } // namespace v8::internal 823 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/macro-assembler-arm.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698