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

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

Issue 1620253003: Implement the function.sent proposal. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add TODO Created 4 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/flag-definitions.h ('k') | src/full-codegen/arm64/full-codegen-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 2068 matching lines...) Expand 10 before | Expand all | Expand 10 after
2079 Expression *value, 2079 Expression *value,
2080 JSGeneratorObject::ResumeMode resume_mode) { 2080 JSGeneratorObject::ResumeMode resume_mode) {
2081 // The value stays in r0, and is ultimately read by the resumed generator, as 2081 // The value stays in r0, and is ultimately read by the resumed generator, as
2082 // if CallRuntime(Runtime::kSuspendJSGeneratorObject) returned it. Or it 2082 // if CallRuntime(Runtime::kSuspendJSGeneratorObject) returned it. Or it
2083 // is read to throw the value when the resumed generator is already closed. 2083 // is read to throw the value when the resumed generator is already closed.
2084 // r1 will hold the generator object until the activation has been resumed. 2084 // r1 will hold the generator object until the activation has been resumed.
2085 VisitForStackValue(generator); 2085 VisitForStackValue(generator);
2086 VisitForAccumulatorValue(value); 2086 VisitForAccumulatorValue(value);
2087 __ pop(r1); 2087 __ pop(r1);
2088 2088
2089 // Store input value into generator object.
2090 __ str(result_register(),
2091 FieldMemOperand(r1, JSGeneratorObject::kInputOffset));
2092 __ mov(r2, result_register());
2093 __ RecordWriteField(r1, JSGeneratorObject::kInputOffset, r2, r3,
2094 kLRHasBeenSaved, kDontSaveFPRegs);
2095
2089 // Load suspended function and context. 2096 // Load suspended function and context.
2090 __ ldr(cp, FieldMemOperand(r1, JSGeneratorObject::kContextOffset)); 2097 __ ldr(cp, FieldMemOperand(r1, JSGeneratorObject::kContextOffset));
2091 __ ldr(r4, FieldMemOperand(r1, JSGeneratorObject::kFunctionOffset)); 2098 __ ldr(r4, FieldMemOperand(r1, JSGeneratorObject::kFunctionOffset));
2092 2099
2093 // Load receiver and store as the first argument. 2100 // Load receiver and store as the first argument.
2094 __ ldr(r2, FieldMemOperand(r1, JSGeneratorObject::kReceiverOffset)); 2101 __ ldr(r2, FieldMemOperand(r1, JSGeneratorObject::kReceiverOffset));
2095 __ push(r2); 2102 __ push(r2);
2096 2103
2097 // Push holes for the rest of the arguments to the generator function. 2104 // Push holes for the rest of the arguments to the generator function.
2098 __ ldr(r3, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); 2105 __ ldr(r3, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset));
(...skipping 2752 matching lines...) Expand 10 before | Expand all | Expand 10 after
4851 DCHECK(interrupt_address == 4858 DCHECK(interrupt_address ==
4852 isolate->builtins()->OsrAfterStackCheck()->entry()); 4859 isolate->builtins()->OsrAfterStackCheck()->entry());
4853 return OSR_AFTER_STACK_CHECK; 4860 return OSR_AFTER_STACK_CHECK;
4854 } 4861 }
4855 4862
4856 4863
4857 } // namespace internal 4864 } // namespace internal
4858 } // namespace v8 4865 } // namespace v8
4859 4866
4860 #endif // V8_TARGET_ARCH_ARM 4867 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698