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

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

Issue 265283007: Remove broken %_Log functionality. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Some missing flag uses. Created 6 years, 7 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/log-utils.cc ('k') | src/mips/macro-assembler-mips.h » ('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 #include "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 3330 matching lines...) Expand 10 before | Expand all | Expand 10 after
3341 __ bind(&null); 3341 __ bind(&null);
3342 __ LoadRoot(v0, Heap::kNullValueRootIndex); 3342 __ LoadRoot(v0, Heap::kNullValueRootIndex);
3343 3343
3344 // All done. 3344 // All done.
3345 __ bind(&done); 3345 __ bind(&done);
3346 3346
3347 context()->Plug(v0); 3347 context()->Plug(v0);
3348 } 3348 }
3349 3349
3350 3350
3351 void FullCodeGenerator::EmitLog(CallRuntime* expr) {
3352 // Conditionally generate a log call.
3353 // Args:
3354 // 0 (literal string): The type of logging (corresponds to the flags).
3355 // This is used to determine whether or not to generate the log call.
3356 // 1 (string): Format string. Access the string at argument index 2
3357 // with '%2s' (see Logger::LogRuntime for all the formats).
3358 // 2 (array): Arguments to the format string.
3359 ZoneList<Expression*>* args = expr->arguments();
3360 ASSERT_EQ(args->length(), 3);
3361 if (CodeGenerator::ShouldGenerateLog(isolate(), args->at(0))) {
3362 VisitForStackValue(args->at(1));
3363 VisitForStackValue(args->at(2));
3364 __ CallRuntime(Runtime::kHiddenLog, 2);
3365 }
3366
3367 // Finally, we're expected to leave a value on the top of the stack.
3368 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex);
3369 context()->Plug(v0);
3370 }
3371
3372
3373 void FullCodeGenerator::EmitSubString(CallRuntime* expr) { 3351 void FullCodeGenerator::EmitSubString(CallRuntime* expr) {
3374 // Load the arguments on the stack and call the stub. 3352 // Load the arguments on the stack and call the stub.
3375 SubStringStub stub(isolate()); 3353 SubStringStub stub(isolate());
3376 ZoneList<Expression*>* args = expr->arguments(); 3354 ZoneList<Expression*>* args = expr->arguments();
3377 ASSERT(args->length() == 3); 3355 ASSERT(args->length() == 3);
3378 VisitForStackValue(args->at(0)); 3356 VisitForStackValue(args->at(0));
3379 VisitForStackValue(args->at(1)); 3357 VisitForStackValue(args->at(1));
3380 VisitForStackValue(args->at(2)); 3358 VisitForStackValue(args->at(2));
3381 __ CallStub(&stub); 3359 __ CallStub(&stub);
3382 context()->Plug(v0); 3360 context()->Plug(v0);
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after
4895 Assembler::target_address_at(pc_immediate_load_address)) == 4873 Assembler::target_address_at(pc_immediate_load_address)) ==
4896 reinterpret_cast<uint32_t>( 4874 reinterpret_cast<uint32_t>(
4897 isolate->builtins()->OsrAfterStackCheck()->entry())); 4875 isolate->builtins()->OsrAfterStackCheck()->entry()));
4898 return OSR_AFTER_STACK_CHECK; 4876 return OSR_AFTER_STACK_CHECK;
4899 } 4877 }
4900 4878
4901 4879
4902 } } // namespace v8::internal 4880 } } // namespace v8::internal
4903 4881
4904 #endif // V8_TARGET_ARCH_MIPS 4882 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/log-utils.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698