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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.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/x64/full-codegen-x64.cc ('k') | src/heap/heap.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_X87 5 #if V8_TARGET_ARCH_X87
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 3983 matching lines...) Expand 10 before | Expand all | Expand 10 after
3994 switch (target_state) { 3994 switch (target_state) {
3995 case INTERRUPT: 3995 case INTERRUPT:
3996 // sub <profiling_counter>, <delta> ;; Not changed 3996 // sub <profiling_counter>, <delta> ;; Not changed
3997 // jns ok 3997 // jns ok
3998 // call <interrupt stub> 3998 // call <interrupt stub>
3999 // ok: 3999 // ok:
4000 *jns_instr_address = kJnsInstruction; 4000 *jns_instr_address = kJnsInstruction;
4001 *jns_offset_address = kJnsOffset; 4001 *jns_offset_address = kJnsOffset;
4002 break; 4002 break;
4003 case ON_STACK_REPLACEMENT: 4003 case ON_STACK_REPLACEMENT:
4004 case OSR_AFTER_STACK_CHECK:
4005 // sub <profiling_counter>, <delta> ;; Not changed 4004 // sub <profiling_counter>, <delta> ;; Not changed
4006 // nop 4005 // nop
4007 // nop 4006 // nop
4008 // call <on-stack replacment> 4007 // call <on-stack replacment>
4009 // ok: 4008 // ok:
4010 *jns_instr_address = kNopByteOne; 4009 *jns_instr_address = kNopByteOne;
4011 *jns_offset_address = kNopByteTwo; 4010 *jns_offset_address = kNopByteTwo;
4012 break; 4011 break;
4013 } 4012 }
4014 4013
(...skipping 17 matching lines...) Expand all
4032 DCHECK_EQ(kJnsOffset, *(call_target_address - 2)); 4031 DCHECK_EQ(kJnsOffset, *(call_target_address - 2));
4033 DCHECK_EQ(isolate->builtins()->InterruptCheck()->entry(), 4032 DCHECK_EQ(isolate->builtins()->InterruptCheck()->entry(),
4034 Assembler::target_address_at(call_target_address, 4033 Assembler::target_address_at(call_target_address,
4035 unoptimized_code)); 4034 unoptimized_code));
4036 return INTERRUPT; 4035 return INTERRUPT;
4037 } 4036 }
4038 4037
4039 DCHECK_EQ(kNopByteOne, *jns_instr_address); 4038 DCHECK_EQ(kNopByteOne, *jns_instr_address);
4040 DCHECK_EQ(kNopByteTwo, *(call_target_address - 2)); 4039 DCHECK_EQ(kNopByteTwo, *(call_target_address - 2));
4041 4040
4042 if (Assembler::target_address_at(call_target_address, unoptimized_code) == 4041 DCHECK_EQ(
4043 isolate->builtins()->OnStackReplacement()->entry()) { 4042 isolate->builtins()->OnStackReplacement()->entry(),
4044 return ON_STACK_REPLACEMENT; 4043 Assembler::target_address_at(call_target_address, unoptimized_code));
4045 } 4044 return ON_STACK_REPLACEMENT;
4046
4047 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4048 Assembler::target_address_at(call_target_address,
4049 unoptimized_code));
4050 return OSR_AFTER_STACK_CHECK;
4051 } 4045 }
4052 4046
4053 4047
4054 } // namespace internal 4048 } // namespace internal
4055 } // namespace v8 4049 } // namespace v8
4056 4050
4057 #endif // V8_TARGET_ARCH_X87 4051 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698