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/ia32/full-codegen-ia32.cc

Issue 700523003: Classes: Partial fix for constructor not calling super (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 __ call(isolate()->builtins()->InterruptCheck(), 398 __ call(isolate()->builtins()->InterruptCheck(),
399 RelocInfo::CODE_TARGET); 399 RelocInfo::CODE_TARGET);
400 __ pop(eax); 400 __ pop(eax);
401 EmitProfilingCounterReset(); 401 EmitProfilingCounterReset();
402 __ bind(&ok); 402 __ bind(&ok);
403 #ifdef DEBUG 403 #ifdef DEBUG
404 // Add a label for checking the size of the code used for returning. 404 // Add a label for checking the size of the code used for returning.
405 Label check_exit_codesize; 405 Label check_exit_codesize;
406 masm_->bind(&check_exit_codesize); 406 masm_->bind(&check_exit_codesize);
407 #endif 407 #endif
408 SetSourcePosition(function()->end_position() - 1); 408 if (function()->end_position() != RelocInfo::kNoPosition) {
409 SetSourcePosition(function()->end_position() - 1);
410 }
409 __ RecordJSReturn(); 411 __ RecordJSReturn();
410 // Do not use the leave instruction here because it is too short to 412 // Do not use the leave instruction here because it is too short to
411 // patch with the code required by the debugger. 413 // patch with the code required by the debugger.
412 __ mov(esp, ebp); 414 __ mov(esp, ebp);
413 int no_frame_start = masm_->pc_offset(); 415 int no_frame_start = masm_->pc_offset();
414 __ pop(ebp); 416 __ pop(ebp);
415 417
416 int arguments_bytes = (info_->scope()->num_parameters() + 1) * kPointerSize; 418 int arguments_bytes = (info_->scope()->num_parameters() + 1) * kPointerSize;
417 __ Ret(arguments_bytes, ecx); 419 __ Ret(arguments_bytes, ecx);
418 // Check that the size of the code used for returning is large enough 420 // Check that the size of the code used for returning is large enough
(...skipping 4799 matching lines...) Expand 10 before | Expand all | Expand 10 after
5218 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5220 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5219 Assembler::target_address_at(call_target_address, 5221 Assembler::target_address_at(call_target_address,
5220 unoptimized_code)); 5222 unoptimized_code));
5221 return OSR_AFTER_STACK_CHECK; 5223 return OSR_AFTER_STACK_CHECK;
5222 } 5224 }
5223 5225
5224 5226
5225 } } // namespace v8::internal 5227 } } // namespace v8::internal
5226 5228
5227 #endif // V8_TARGET_ARCH_IA32 5229 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698