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

Side by Side Diff: src/ia32/full-codegen-ia32.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
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 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after
2136 __ push(Operand(esp, arg_count * kPointerSize)); 2136 __ push(Operand(esp, arg_count * kPointerSize));
2137 } else { 2137 } else {
2138 __ push(Immediate(isolate()->factory()->undefined_value())); 2138 __ push(Immediate(isolate()->factory()->undefined_value()));
2139 } 2139 }
2140 2140
2141 // Push the receiver of the enclosing function. 2141 // Push the receiver of the enclosing function.
2142 __ push(Operand(ebp, (2 + info_->scope()->num_parameters()) * kPointerSize)); 2142 __ push(Operand(ebp, (2 + info_->scope()->num_parameters()) * kPointerSize));
2143 2143
2144 // Push the strict mode flag. In harmony mode every eval call 2144 // Push the strict mode flag. In harmony mode every eval call
2145 // is a strict mode eval call. 2145 // is a strict mode eval call.
2146 StrictModeFlag strict_mode = strict_mode_flag(); 2146 StrictModeFlag strict_mode =
2147 if (FLAG_harmony_block_scoping) { 2147 FLAG_harmony_scoping ? kStrictMode : strict_mode_flag();
2148 strict_mode = kStrictMode;
2149 }
2150 __ push(Immediate(Smi::FromInt(strict_mode))); 2148 __ push(Immediate(Smi::FromInt(strict_mode)));
2151 2149
2152 __ CallRuntime(flag == SKIP_CONTEXT_LOOKUP 2150 __ CallRuntime(flag == SKIP_CONTEXT_LOOKUP
2153 ? Runtime::kResolvePossiblyDirectEvalNoLookup 2151 ? Runtime::kResolvePossiblyDirectEvalNoLookup
2154 : Runtime::kResolvePossiblyDirectEval, 4); 2152 : Runtime::kResolvePossiblyDirectEval, 4);
2155 } 2153 }
2156 2154
2157 2155
2158 void FullCodeGenerator::VisitCall(Call* expr) { 2156 void FullCodeGenerator::VisitCall(Call* expr) {
2159 #ifdef DEBUG 2157 #ifdef DEBUG
(...skipping 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after
4345 *context_length = 0; 4343 *context_length = 0;
4346 return previous_; 4344 return previous_;
4347 } 4345 }
4348 4346
4349 4347
4350 #undef __ 4348 #undef __
4351 4349
4352 } } // namespace v8::internal 4350 } } // namespace v8::internal
4353 4351
4354 #endif // V8_TARGET_ARCH_IA32 4352 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/mips/full-codegen-mips.cc » ('j') | src/v8.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698