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

Side by Side Diff: src/arm/macro-assembler-arm.cc

Issue 150100: More changes to make the simulator run code that for the ARM5 snapshot. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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/arm/disasm-arm.cc ('k') | src/arm/simulator-arm.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-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 28 matching lines...) Expand all
39 : Assembler(buffer, size), 39 : Assembler(buffer, size),
40 unresolved_(0), 40 unresolved_(0),
41 generating_stub_(false), 41 generating_stub_(false),
42 allow_stub_calls_(true), 42 allow_stub_calls_(true),
43 code_object_(Heap::undefined_value()) { 43 code_object_(Heap::undefined_value()) {
44 } 44 }
45 45
46 46
47 // We always generate arm code, never thumb code, even if V8 is compiled to 47 // We always generate arm code, never thumb code, even if V8 is compiled to
48 // thumb, so we require inter-working support 48 // thumb, so we require inter-working support
49 #if defined(__thumb__) && !defined(__THUMB_INTERWORK__) 49 #if defined(__thumb__) && !defined(USE_THUMB_INTERWORK)
50 #error "flag -mthumb-interwork missing" 50 #error "flag -mthumb-interwork missing"
51 #endif 51 #endif
52 52
53 53
54 // We do not support thumb inter-working with an arm architecture not supporting 54 // We do not support thumb inter-working with an arm architecture not supporting
55 // the blx instruction (below v5t) 55 // the blx instruction (below v5t)
56 #if defined(__THUMB_INTERWORK__) 56 #if defined(USE_THUMB_INTERWORK)
57 #if !defined(__ARM_ARCH_5T__) && \ 57 #if !defined(__ARM_ARCH_5T__) && \
58 !defined(__ARM_ARCH_5TE__) && \ 58 !defined(__ARM_ARCH_5TE__) && \
59 !defined(__ARM_ARCH_7A__) && \ 59 !defined(__ARM_ARCH_7A__) && \
60 !defined(__ARM_ARCH_7__) 60 !defined(__ARM_ARCH_7__)
61 // add tests for other versions above v5t as required 61 // add tests for other versions above v5t as required
62 #error "for thumb inter-working we require architecture v5t or above" 62 #error "for thumb inter-working we require architecture v5t or above"
63 #endif 63 #endif
64 #endif 64 #endif
65 65
66 66
67 // Using blx may yield better code, so use it when required or when available 67 // Using blx may yield better code, so use it when required or when available
68 #if defined(__THUMB_INTERWORK__) || defined(__ARM_ARCH_5__) 68 #if defined(USE_THUMB_INTERWORK) || defined(__ARM_ARCH_5__)
69 #define USE_BLX 1 69 #define USE_BLX 1
70 #endif 70 #endif
71 71
72 // Using bx does not yield better code, so use it only when required 72 // Using bx does not yield better code, so use it only when required
73 #if defined(__THUMB_INTERWORK__) 73 #if defined(USE_THUMB_INTERWORK)
74 #define USE_BX 1 74 #define USE_BX 1
75 #endif 75 #endif
76 76
77 77
78 void MacroAssembler::Jump(Register target, Condition cond) { 78 void MacroAssembler::Jump(Register target, Condition cond) {
79 #if USE_BX 79 #if USE_BX
80 bx(target, cond); 80 bx(target, cond);
81 #else 81 #else
82 mov(pc, Operand(target), LeaveCC, cond); 82 mov(pc, Operand(target), LeaveCC, cond);
83 #endif 83 #endif
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 #endif 992 #endif
993 mov(r0, Operand(p0)); 993 mov(r0, Operand(p0));
994 push(r0); 994 push(r0);
995 mov(r0, Operand(Smi::FromInt(p1 - p0))); 995 mov(r0, Operand(Smi::FromInt(p1 - p0)));
996 push(r0); 996 push(r0);
997 CallRuntime(Runtime::kAbort, 2); 997 CallRuntime(Runtime::kAbort, 2);
998 // will not return here 998 // will not return here
999 } 999 }
1000 1000
1001 } } // namespace v8::internal 1001 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/disasm-arm.cc ('k') | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698