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

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

Issue 8226017: Introduce collective --harmony flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 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 | « src/api.cc ('k') | src/compiler.cc » ('j') | src/v8.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2121 matching lines...) Expand 10 before | Expand all | Expand 10 after
2132 __ LoadRoot(r1, Heap::kUndefinedValueRootIndex); 2132 __ LoadRoot(r1, Heap::kUndefinedValueRootIndex);
2133 } 2133 }
2134 __ push(r1); 2134 __ push(r1);
2135 2135
2136 // Push the receiver of the enclosing function and do runtime call. 2136 // Push the receiver of the enclosing function and do runtime call.
2137 int receiver_offset = 2 + info_->scope()->num_parameters(); 2137 int receiver_offset = 2 + info_->scope()->num_parameters();
2138 __ ldr(r1, MemOperand(fp, receiver_offset * kPointerSize)); 2138 __ ldr(r1, MemOperand(fp, receiver_offset * kPointerSize));
2139 __ push(r1); 2139 __ push(r1);
2140 // Push the strict mode flag. In harmony mode every eval call 2140 // Push the strict mode flag. In harmony mode every eval call
2141 // is a strict mode eval call. 2141 // is a strict mode eval call.
2142 StrictModeFlag strict_mode = strict_mode_flag(); 2142 StrictModeFlag strict_mode =
2143 if (FLAG_harmony_block_scoping) { 2143 FLAG_harmony_scoping ? kStrictMode : strict_mode_flag();
2144 strict_mode = kStrictMode;
2145 }
2146 __ mov(r1, Operand(Smi::FromInt(strict_mode))); 2144 __ mov(r1, Operand(Smi::FromInt(strict_mode)));
2147 __ push(r1); 2145 __ push(r1);
2148 2146
2149 __ CallRuntime(flag == SKIP_CONTEXT_LOOKUP 2147 __ CallRuntime(flag == SKIP_CONTEXT_LOOKUP
2150 ? Runtime::kResolvePossiblyDirectEvalNoLookup 2148 ? Runtime::kResolvePossiblyDirectEvalNoLookup
2151 : Runtime::kResolvePossiblyDirectEval, 4); 2149 : Runtime::kResolvePossiblyDirectEval, 4);
2152 } 2150 }
2153 2151
2154 2152
2155 void FullCodeGenerator::VisitCall(Call* expr) { 2153 void FullCodeGenerator::VisitCall(Call* expr) {
(...skipping 2114 matching lines...) Expand 10 before | Expand all | Expand 10 after
4270 *context_length = 0; 4268 *context_length = 0;
4271 return previous_; 4269 return previous_;
4272 } 4270 }
4273 4271
4274 4272
4275 #undef __ 4273 #undef __
4276 4274
4277 } } // namespace v8::internal 4275 } } // namespace v8::internal
4278 4276
4279 #endif // V8_TARGET_ARCH_ARM 4277 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/compiler.cc » ('j') | src/v8.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698