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

Side by Side Diff: src/mips64/full-codegen-mips64.cc

Issue 919643008: Remove --experimental-classes flag and related dead code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/objects.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 // 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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // Add a label for checking the size of the code used for returning. 433 // Add a label for checking the size of the code used for returning.
434 Label check_exit_codesize; 434 Label check_exit_codesize;
435 masm_->bind(&check_exit_codesize); 435 masm_->bind(&check_exit_codesize);
436 #endif 436 #endif
437 // Make sure that the constant pool is not emitted inside of the return 437 // Make sure that the constant pool is not emitted inside of the return
438 // sequence. 438 // sequence.
439 { Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm_); 439 { Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm_);
440 // Here we use masm_-> instead of the __ macro to avoid the code coverage 440 // Here we use masm_-> instead of the __ macro to avoid the code coverage
441 // tool from instrumenting as we rely on the code size here. 441 // tool from instrumenting as we rely on the code size here.
442 int32_t arg_count = info_->scope()->num_parameters() + 1; 442 int32_t arg_count = info_->scope()->num_parameters() + 1;
443 if (FLAG_experimental_classes && 443 if (IsSubclassConstructor(info_->function()->kind())) {
444 IsSubclassConstructor(info_->function()->kind())) {
445 arg_count++; 444 arg_count++;
446 } 445 }
447 int32_t sp_delta = arg_count * kPointerSize; 446 int32_t sp_delta = arg_count * kPointerSize;
448 CodeGenerator::RecordPositions(masm_, function()->end_position() - 1); 447 CodeGenerator::RecordPositions(masm_, function()->end_position() - 1);
449 __ RecordJSReturn(); 448 __ RecordJSReturn();
450 masm_->mov(sp, fp); 449 masm_->mov(sp, fp);
451 int no_frame_start = masm_->pc_offset(); 450 int no_frame_start = masm_->pc_offset();
452 masm_->MultiPop(static_cast<RegList>(fp.bit() | ra.bit())); 451 masm_->MultiPop(static_cast<RegList>(fp.bit() | ra.bit()));
453 masm_->Daddu(sp, sp, Operand(sp_delta)); 452 masm_->Daddu(sp, sp, Operand(sp_delta));
454 masm_->Jump(ra); 453 masm_->Jump(ra);
(...skipping 2699 matching lines...) Expand 10 before | Expand all | Expand 10 after
3154 PreservePositionScope scope(masm()->positions_recorder()); 3153 PreservePositionScope scope(masm()->positions_recorder());
3155 VisitForStackValue(property->obj()); 3154 VisitForStackValue(property->obj());
3156 } 3155 }
3157 if (is_named_call) { 3156 if (is_named_call) {
3158 EmitCallWithLoadIC(expr); 3157 EmitCallWithLoadIC(expr);
3159 } else { 3158 } else {
3160 EmitKeyedCallWithLoadIC(expr, property->key()); 3159 EmitKeyedCallWithLoadIC(expr, property->key());
3161 } 3160 }
3162 } 3161 }
3163 } else if (call_type == Call::SUPER_CALL) { 3162 } else if (call_type == Call::SUPER_CALL) {
3164 if (FLAG_experimental_classes) { 3163 EmitSuperConstructorCall(expr);
3165 EmitSuperConstructorCall(expr);
3166 } else {
3167 EmitLoadSuperConstructor();
3168 __ Push(result_register());
3169 SuperReference* super_ref = callee->AsSuperReference();
3170 VisitForStackValue(super_ref->this_var());
3171 EmitCall(expr, CallICState::METHOD);
3172 }
3173 } else { 3164 } else {
3174 DCHECK(call_type == Call::OTHER_CALL); 3165 DCHECK(call_type == Call::OTHER_CALL);
3175 // Call to an arbitrary expression not handled specially above. 3166 // Call to an arbitrary expression not handled specially above.
3176 { PreservePositionScope scope(masm()->positions_recorder()); 3167 { PreservePositionScope scope(masm()->positions_recorder());
3177 VisitForStackValue(callee); 3168 VisitForStackValue(callee);
3178 } 3169 }
3179 __ LoadRoot(a1, Heap::kUndefinedValueRootIndex); 3170 __ LoadRoot(a1, Heap::kUndefinedValueRootIndex);
3180 __ push(a1); 3171 __ push(a1);
3181 // Emit function call. 3172 // Emit function call.
3182 EmitCall(expr); 3173 EmitCall(expr);
(...skipping 2254 matching lines...) Expand 10 before | Expand all | Expand 10 after
5437 Assembler::target_address_at(pc_immediate_load_address)) == 5428 Assembler::target_address_at(pc_immediate_load_address)) ==
5438 reinterpret_cast<uint64_t>( 5429 reinterpret_cast<uint64_t>(
5439 isolate->builtins()->OsrAfterStackCheck()->entry())); 5430 isolate->builtins()->OsrAfterStackCheck()->entry()));
5440 return OSR_AFTER_STACK_CHECK; 5431 return OSR_AFTER_STACK_CHECK;
5441 } 5432 }
5442 5433
5443 5434
5444 } } // namespace v8::internal 5435 } } // namespace v8::internal
5445 5436
5446 #endif // V8_TARGET_ARCH_MIPS64 5437 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698