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

Side by Side Diff: src/x64/builtins-x64.cc

Issue 256653004: Always include debugger support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Makefile Created 6 years, 7 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/x64/assembler-x64-inl.h ('k') | src/x64/debug-x64.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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 // Push the function to invoke on the stack. 157 // Push the function to invoke on the stack.
158 __ Push(rdi); 158 __ Push(rdi);
159 159
160 // Try to allocate the object without transitioning into C code. If any of 160 // Try to allocate the object without transitioning into C code. If any of
161 // the preconditions is not met, the code bails out to the runtime call. 161 // the preconditions is not met, the code bails out to the runtime call.
162 Label rt_call, allocated; 162 Label rt_call, allocated;
163 if (FLAG_inline_new) { 163 if (FLAG_inline_new) {
164 Label undo_allocation; 164 Label undo_allocation;
165 165
166 #ifdef ENABLE_DEBUGGER_SUPPORT
167 ExternalReference debug_step_in_fp = 166 ExternalReference debug_step_in_fp =
168 ExternalReference::debug_step_in_fp_address(masm->isolate()); 167 ExternalReference::debug_step_in_fp_address(masm->isolate());
169 __ Move(kScratchRegister, debug_step_in_fp); 168 __ Move(kScratchRegister, debug_step_in_fp);
170 __ cmpp(Operand(kScratchRegister, 0), Immediate(0)); 169 __ cmpp(Operand(kScratchRegister, 0), Immediate(0));
171 __ j(not_equal, &rt_call); 170 __ j(not_equal, &rt_call);
172 #endif
173 171
174 // Verified that the constructor is a JSFunction. 172 // Verified that the constructor is a JSFunction.
175 // Load the initial map and verify that it is in fact a map. 173 // Load the initial map and verify that it is in fact a map.
176 // rdi: constructor 174 // rdi: constructor
177 __ movp(rax, FieldOperand(rdi, JSFunction::kPrototypeOrInitialMapOffset)); 175 __ movp(rax, FieldOperand(rdi, JSFunction::kPrototypeOrInitialMapOffset));
178 // Will both indicate a NULL and a Smi 176 // Will both indicate a NULL and a Smi
179 ASSERT(kSmiTag == 0); 177 ASSERT(kSmiTag == 0);
180 __ JumpIfSmi(rax, &rt_call); 178 __ JumpIfSmi(rax, &rt_call);
181 // rdi: constructor 179 // rdi: constructor
182 // rax: initial map (if proven valid below) 180 // rax: initial map (if proven valid below)
(...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 __ bind(&ok); 1528 __ bind(&ok);
1531 __ ret(0); 1529 __ ret(0);
1532 } 1530 }
1533 1531
1534 1532
1535 #undef __ 1533 #undef __
1536 1534
1537 } } // namespace v8::internal 1535 } } // namespace v8::internal
1538 1536
1539 #endif // V8_TARGET_ARCH_X64 1537 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64-inl.h ('k') | src/x64/debug-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698