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

Side by Side Diff: src/a64/simulator-a64.cc

Issue 148503002: A64: Synchronize with r15545. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « src/a64/regexp-macro-assembler-a64.cc ('k') | src/a64/stub-cache-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 12 matching lines...) Expand all
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #include <stdlib.h> 28 #include <stdlib.h>
29 #include <cmath> 29 #include <cmath>
30 #include <cstdarg> 30 #include <cstdarg>
31 #include "v8.h" 31 #include "v8.h"
32 32
33 #if defined(V8_TARGET_ARCH_A64) 33 #if V8_TARGET_ARCH_A64
34 34
35 #include "disasm.h" 35 #include "disasm.h"
36 #include "assembler.h" 36 #include "assembler.h"
37 #include "a64/simulator-a64.h" 37 #include "a64/simulator-a64.h"
38 #include "macro-assembler.h" 38 #include "macro-assembler.h"
39 39
40 namespace v8 { 40 namespace v8 {
41 namespace internal { 41 namespace internal {
42 42
43 #if defined(USE_SIMULATOR) 43 #if defined(USE_SIMULATOR)
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 758
759 void Simulator::ListBreakpoints() { 759 void Simulator::ListBreakpoints() {
760 PrintF("Breakpoints:\n"); 760 PrintF("Breakpoints:\n");
761 for (unsigned i = 0; i < breakpoints_.size(); i++) { 761 for (unsigned i = 0; i < breakpoints_.size(); i++) {
762 PrintF("%p : %s\n", 762 PrintF("%p : %s\n",
763 reinterpret_cast<void*>(breakpoints_.at(i).location), 763 reinterpret_cast<void*>(breakpoints_.at(i).location),
764 breakpoints_.at(i).enabled ? "enabled" : "disabled"); 764 breakpoints_.at(i).enabled ? "enabled" : "disabled");
765 } 765 }
766 } 766 }
767 767
768
768 void Simulator::CheckBreakpoints() { 769 void Simulator::CheckBreakpoints() {
769 bool hit_a_breakpoint = false; 770 bool hit_a_breakpoint = false;
770 for (unsigned i = 0; i < breakpoints_.size(); i++) { 771 for (unsigned i = 0; i < breakpoints_.size(); i++) {
771 if ((breakpoints_.at(i).location == pc_) && 772 if ((breakpoints_.at(i).location == pc_) &&
772 breakpoints_.at(i).enabled) { 773 breakpoints_.at(i).enabled) {
773 hit_a_breakpoint = true; 774 hit_a_breakpoint = true;
774 // Disable this breakpoint. 775 // Disable this breakpoint.
775 breakpoints_.at(i).enabled = false; 776 breakpoints_.at(i).enabled = false;
776 } 777 }
777 } 778 }
(...skipping 2637 matching lines...) Expand 10 before | Expand all | Expand 10 after
3415 default: 3416 default:
3416 UNIMPLEMENTED(); 3417 UNIMPLEMENTED();
3417 } 3418 }
3418 } 3419 }
3419 3420
3420 #endif // USE_SIMULATOR 3421 #endif // USE_SIMULATOR
3421 3422
3422 } } // namespace v8::internal 3423 } } // namespace v8::internal
3423 3424
3424 #endif // V8_TARGET_ARCH_A64 3425 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/regexp-macro-assembler-a64.cc ('k') | src/a64/stub-cache-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698