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

Side by Side Diff: src/mips/debug-mips.cc

Issue 22715004: Version 3.20.15 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Add TypedArray API and correctness patches r16033 and r16084 Created 7 years, 4 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/mips/codegen-mips.cc ('k') | src/mips/full-codegen-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 ASSERT((object_regs & ~kJSCallerSaved) == 0); 135 ASSERT((object_regs & ~kJSCallerSaved) == 0);
136 ASSERT((non_object_regs & ~kJSCallerSaved) == 0); 136 ASSERT((non_object_regs & ~kJSCallerSaved) == 0);
137 ASSERT((object_regs & non_object_regs) == 0); 137 ASSERT((object_regs & non_object_regs) == 0);
138 if ((object_regs | non_object_regs) != 0) { 138 if ((object_regs | non_object_regs) != 0) {
139 for (int i = 0; i < kNumJSCallerSaved; i++) { 139 for (int i = 0; i < kNumJSCallerSaved; i++) {
140 int r = JSCallerSavedCode(i); 140 int r = JSCallerSavedCode(i);
141 Register reg = { r }; 141 Register reg = { r };
142 if ((non_object_regs & (1 << r)) != 0) { 142 if ((non_object_regs & (1 << r)) != 0) {
143 if (FLAG_debug_code) { 143 if (FLAG_debug_code) {
144 __ And(at, reg, 0xc0000000); 144 __ And(at, reg, 0xc0000000);
145 __ Assert(eq, kUnableToEncodeValueAsSmi, at, Operand(zero_reg)); 145 __ Assert(
146 eq, "Unable to encode value as smi", at, Operand(zero_reg));
146 } 147 }
147 __ sll(reg, reg, kSmiTagSize); 148 __ sll(reg, reg, kSmiTagSize);
148 } 149 }
149 } 150 }
150 __ MultiPush(object_regs | non_object_regs); 151 __ MultiPush(object_regs | non_object_regs);
151 } 152 }
152 153
153 #ifdef DEBUG 154 #ifdef DEBUG
154 __ RecordComment("// Calling from debug break to runtime - come in - over"); 155 __ RecordComment("// Calling from debug break to runtime - come in - over");
155 #endif 156 #endif
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 318
318 319
319 void Debug::GenerateSlotDebugBreak(MacroAssembler* masm) { 320 void Debug::GenerateSlotDebugBreak(MacroAssembler* masm) {
320 // In the places where a debug break slot is inserted no registers can contain 321 // In the places where a debug break slot is inserted no registers can contain
321 // object pointers. 322 // object pointers.
322 Generate_DebugBreakCallHelper(masm, 0, 0); 323 Generate_DebugBreakCallHelper(masm, 0, 0);
323 } 324 }
324 325
325 326
326 void Debug::GeneratePlainReturnLiveEdit(MacroAssembler* masm) { 327 void Debug::GeneratePlainReturnLiveEdit(MacroAssembler* masm) {
327 masm->Abort(kLiveEditFrameDroppingIsNotSupportedOnMips); 328 masm->Abort("LiveEdit frame dropping is not supported on mips");
328 } 329 }
329 330
330 331
331 void Debug::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { 332 void Debug::GenerateFrameDropperLiveEdit(MacroAssembler* masm) {
332 masm->Abort(kLiveEditFrameDroppingIsNotSupportedOnMips); 333 masm->Abort("LiveEdit frame dropping is not supported on mips");
333 } 334 }
334 335
335 336
336 const bool Debug::kFrameDropperSupported = false; 337 const bool Debug::kFrameDropperSupported = false;
337 338
338 #undef __ 339 #undef __
339 340
340 341
341 #endif // ENABLE_DEBUGGER_SUPPORT 342 #endif // ENABLE_DEBUGGER_SUPPORT
342 343
343 } } // namespace v8::internal 344 } } // namespace v8::internal
344 345
345 #endif // V8_TARGET_ARCH_MIPS 346 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698