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

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

Issue 1773593002: [compiler] Remove support for concurrent OSR. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix release builds. Created 4 years, 9 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/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3991 matching lines...) Expand 10 before | Expand all | Expand 10 after
4002 switch (target_state) { 4002 switch (target_state) {
4003 case INTERRUPT: 4003 case INTERRUPT:
4004 // sub <profiling_counter>, <delta> ;; Not changed 4004 // sub <profiling_counter>, <delta> ;; Not changed
4005 // jns ok 4005 // jns ok
4006 // call <interrupt stub> 4006 // call <interrupt stub>
4007 // ok: 4007 // ok:
4008 *jns_instr_address = kJnsInstruction; 4008 *jns_instr_address = kJnsInstruction;
4009 *jns_offset_address = kJnsOffset; 4009 *jns_offset_address = kJnsOffset;
4010 break; 4010 break;
4011 case ON_STACK_REPLACEMENT: 4011 case ON_STACK_REPLACEMENT:
4012 case OSR_AFTER_STACK_CHECK:
4013 // sub <profiling_counter>, <delta> ;; Not changed 4012 // sub <profiling_counter>, <delta> ;; Not changed
4014 // nop 4013 // nop
4015 // nop 4014 // nop
4016 // call <on-stack replacment> 4015 // call <on-stack replacment>
4017 // ok: 4016 // ok:
4018 *jns_instr_address = kNopByteOne; 4017 *jns_instr_address = kNopByteOne;
4019 *jns_offset_address = kNopByteTwo; 4018 *jns_offset_address = kNopByteTwo;
4020 break; 4019 break;
4021 } 4020 }
4022 4021
(...skipping 17 matching lines...) Expand all
4040 DCHECK_EQ(kJnsOffset, *(call_target_address - 2)); 4039 DCHECK_EQ(kJnsOffset, *(call_target_address - 2));
4041 DCHECK_EQ(isolate->builtins()->InterruptCheck()->entry(), 4040 DCHECK_EQ(isolate->builtins()->InterruptCheck()->entry(),
4042 Assembler::target_address_at(call_target_address, 4041 Assembler::target_address_at(call_target_address,
4043 unoptimized_code)); 4042 unoptimized_code));
4044 return INTERRUPT; 4043 return INTERRUPT;
4045 } 4044 }
4046 4045
4047 DCHECK_EQ(kNopByteOne, *jns_instr_address); 4046 DCHECK_EQ(kNopByteOne, *jns_instr_address);
4048 DCHECK_EQ(kNopByteTwo, *(call_target_address - 2)); 4047 DCHECK_EQ(kNopByteTwo, *(call_target_address - 2));
4049 4048
4050 if (Assembler::target_address_at(call_target_address, unoptimized_code) == 4049 DCHECK_EQ(
4051 isolate->builtins()->OnStackReplacement()->entry()) { 4050 isolate->builtins()->OnStackReplacement()->entry(),
4052 return ON_STACK_REPLACEMENT; 4051 Assembler::target_address_at(call_target_address, unoptimized_code));
4053 } 4052 return ON_STACK_REPLACEMENT;
4054
4055 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4056 Assembler::target_address_at(call_target_address,
4057 unoptimized_code));
4058 return OSR_AFTER_STACK_CHECK;
4059 } 4053 }
4060 4054
4061 4055
4062 } // namespace internal 4056 } // namespace internal
4063 } // namespace v8 4057 } // namespace v8
4064 4058
4065 #endif // V8_TARGET_ARCH_IA32 4059 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698