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

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

Issue 225623002: Version 3.25.28.5 (merged r20357) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.25
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 }; 111 };
112 112
113 113
114 static void EmitStackCheck(MacroAssembler* masm_, 114 static void EmitStackCheck(MacroAssembler* masm_,
115 Register stack_limit_scratch, 115 Register stack_limit_scratch,
116 int pointers = 0, 116 int pointers = 0,
117 Register scratch = sp) { 117 Register scratch = sp) {
118 Isolate* isolate = masm_->isolate(); 118 Isolate* isolate = masm_->isolate();
119 Label ok; 119 Label ok;
120 ASSERT(scratch.is(sp) == (pointers == 0)); 120 ASSERT(scratch.is(sp) == (pointers == 0));
121 Heap::RootListIndex index;
121 if (pointers != 0) { 122 if (pointers != 0) {
122 __ sub(scratch, sp, Operand(pointers * kPointerSize)); 123 __ sub(scratch, sp, Operand(pointers * kPointerSize));
124 index = Heap::kRealStackLimitRootIndex;
125 } else {
126 index = Heap::kStackLimitRootIndex;
123 } 127 }
124 __ LoadRoot(stack_limit_scratch, Heap::kStackLimitRootIndex); 128 __ LoadRoot(stack_limit_scratch, index);
125 __ cmp(scratch, Operand(stack_limit_scratch)); 129 __ cmp(scratch, Operand(stack_limit_scratch));
126 __ b(hs, &ok); 130 __ b(hs, &ok);
127 PredictableCodeSizeScope predictable(masm_, 2 * Assembler::kInstrSize); 131 PredictableCodeSizeScope predictable(masm_, 2 * Assembler::kInstrSize);
128 __ Call(isolate->builtins()->StackCheck(), RelocInfo::CODE_TARGET); 132 __ Call(isolate->builtins()->StackCheck(), RelocInfo::CODE_TARGET);
129 __ bind(&ok); 133 __ bind(&ok);
130 } 134 }
131 135
132 136
133 // Generate code for a JS function. On entry to the function the receiver 137 // Generate code for a JS function. On entry to the function the receiver
134 // and arguments have been pushed on the stack left to right. The actual 138 // and arguments have been pushed on the stack left to right. The actual
(...skipping 4808 matching lines...) Expand 10 before | Expand all | Expand 10 after
4943 4947
4944 ASSERT(interrupt_address == 4948 ASSERT(interrupt_address ==
4945 isolate->builtins()->OsrAfterStackCheck()->entry()); 4949 isolate->builtins()->OsrAfterStackCheck()->entry());
4946 return OSR_AFTER_STACK_CHECK; 4950 return OSR_AFTER_STACK_CHECK;
4947 } 4951 }
4948 4952
4949 4953
4950 } } // namespace v8::internal 4954 } } // namespace v8::internal
4951 4955
4952 #endif // V8_TARGET_ARCH_ARM 4956 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698