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

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

Issue 7077: Under construction: Preliminary change to support per... Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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 | « no previous file | src/codegen-ia32.h » ('j') | src/codegen-ia32.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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // Try to allocate the object without transitioning into C code. If any of the 69 // Try to allocate the object without transitioning into C code. If any of the
70 // preconditions is not met, the code bails out to the runtime call. 70 // preconditions is not met, the code bails out to the runtime call.
71 Label rt_call, allocated; 71 Label rt_call, allocated;
72 if (FLAG_inline_new) { 72 if (FLAG_inline_new) {
73 Label undo_allocation; 73 Label undo_allocation;
74 ExternalReference debug_step_in_fp = 74 ExternalReference debug_step_in_fp =
75 ExternalReference::debug_step_in_fp_address(); 75 ExternalReference::debug_step_in_fp_address();
76 __ cmp(Operand::StaticVariable(debug_step_in_fp), Immediate(0)); 76 __ cmp(Operand::StaticVariable(debug_step_in_fp), Immediate(0));
77 __ j(not_equal, &rt_call); 77 __ j(not_equal, &rt_call);
78 // Check that function is not a Smi.
79 __ test(edi, Immediate(kSmiTagMask));
80 __ j(zero, &rt_call);
81 // Check that function is a JSFunction
82 __ mov(eax, FieldOperand(edi, JSFunction::kMapOffset));
83 __ movzx_b(eax, FieldOperand(eax, Map::kInstanceTypeOffset));
84 __ cmp(eax, JS_FUNCTION_TYPE);
85 __ j(not_equal, &rt_call);
86 78
87 // Verified that the constructor is a JSFunction. 79 // Verified that the constructor is a JSFunction.
88 // Load the initial map and verify that it is in fact a map. 80 // Load the initial map and verify that it is in fact a map.
89 // edi: constructor 81 // edi: constructor
90 __ mov(eax, FieldOperand(edi, JSFunction::kPrototypeOrInitialMapOffset)); 82 __ mov(eax, FieldOperand(edi, JSFunction::kPrototypeOrInitialMapOffset));
91 // Will both indicate a NULL and a Smi 83 // Will both indicate a NULL and a Smi
92 __ test(eax, Immediate(kSmiTagMask)); 84 __ test(eax, Immediate(kSmiTagMask));
93 __ j(zero, &rt_call); 85 __ j(zero, &rt_call);
94 // edi: constructor 86 // edi: constructor
95 // eax: initial map (if proven valid below) 87 // eax: initial map (if proven valid below)
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 // Register state for stub CallFunction (from CallFunctionStub in ic-ia32.cc). 879 // Register state for stub CallFunction (from CallFunctionStub in ic-ia32.cc).
888 // ----------- S t a t e ------------- 880 // ----------- S t a t e -------------
889 // No registers used on entry. 881 // No registers used on entry.
890 // ----------------------------------- 882 // -----------------------------------
891 Generate_DebugBreakCallHelper(masm, 0, false); 883 Generate_DebugBreakCallHelper(masm, 0, false);
892 } 884 }
893 885
894 #undef __ 886 #undef __
895 887
896 } } // namespace v8::internal 888 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/codegen-ia32.h » ('j') | src/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698