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

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

Issue 77035: Add ENABLE_DEBUGGER_SUPPORT macro.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 8 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/builtins.cc ('k') | src/codegen.cc » ('j') | src/serialize.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 __ push(eax); 62 __ push(eax);
63 63
64 // Push the function to invoke on the stack. 64 // Push the function to invoke on the stack.
65 __ push(edi); 65 __ push(edi);
66 66
67 // Try to allocate the object without transitioning into C code. If any of the 67 // Try to allocate the object without transitioning into C code. If any of the
68 // preconditions is not met, the code bails out to the runtime call. 68 // preconditions is not met, the code bails out to the runtime call.
69 Label rt_call, allocated; 69 Label rt_call, allocated;
70 if (FLAG_inline_new) { 70 if (FLAG_inline_new) {
71 Label undo_allocation; 71 Label undo_allocation;
72 #ifdef ENABLE_DEBUGGER_SUPPORT
72 ExternalReference debug_step_in_fp = 73 ExternalReference debug_step_in_fp =
73 ExternalReference::debug_step_in_fp_address(); 74 ExternalReference::debug_step_in_fp_address();
74 __ cmp(Operand::StaticVariable(debug_step_in_fp), Immediate(0)); 75 __ cmp(Operand::StaticVariable(debug_step_in_fp), Immediate(0));
75 __ j(not_equal, &rt_call); 76 __ j(not_equal, &rt_call);
77 #endif
76 // Check that function is not a Smi. 78 // Check that function is not a Smi.
77 __ test(edi, Immediate(kSmiTagMask)); 79 __ test(edi, Immediate(kSmiTagMask));
78 __ j(zero, &rt_call); 80 __ j(zero, &rt_call);
79 // Check that function is a JSFunction 81 // Check that function is a JSFunction
80 __ CmpObjectType(edi, JS_FUNCTION_TYPE, eax); 82 __ CmpObjectType(edi, JS_FUNCTION_TYPE, eax);
81 __ j(not_equal, &rt_call); 83 __ j(not_equal, &rt_call);
82 84
83 // Verified that the constructor is a JSFunction. 85 // Verified that the constructor is a JSFunction.
84 // Load the initial map and verify that it is in fact a map. 86 // Load the initial map and verify that it is in fact a map.
85 // edi: constructor 87 // edi: constructor
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 // Dont adapt arguments. 749 // Dont adapt arguments.
748 // ------------------------------------------- 750 // -------------------------------------------
749 __ bind(&dont_adapt_arguments); 751 __ bind(&dont_adapt_arguments);
750 __ jmp(Operand(edx)); 752 __ jmp(Operand(edx));
751 } 753 }
752 754
753 755
754 #undef __ 756 #undef __
755 757
756 } } // namespace v8::internal 758 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/codegen.cc » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698