| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |