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

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

Issue 16573: Fixed build with no ENABLE_LOGGING_AND_PROFILING (Closed)
Patch Set: Created 11 years, 11 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/codegen-arm.h ('k') | src/codegen-ia32.h » ('j') | src/log.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 2562 matching lines...) Expand 10 before | Expand all | Expand 10 after
2573 Load(args->at(0)); 2573 Load(args->at(0));
2574 frame_->Pop(r0); 2574 frame_->Pop(r0);
2575 __ tst(r0, Operand(kSmiTagMask)); 2575 __ tst(r0, Operand(kSmiTagMask));
2576 cc_reg_ = eq; 2576 cc_reg_ = eq;
2577 } 2577 }
2578 2578
2579 2579
2580 void CodeGenerator::GenerateLog(ZoneList<Expression*>* args) { 2580 void CodeGenerator::GenerateLog(ZoneList<Expression*>* args) {
2581 // See comment in CodeGenerator::GenerateLog in codegen-ia32.cc. 2581 // See comment in CodeGenerator::GenerateLog in codegen-ia32.cc.
2582 ASSERT_EQ(args->length(), 3); 2582 ASSERT_EQ(args->length(), 3);
2583 #ifdef ENABLE_LOGGING_AND_PROFILING
2583 if (ShouldGenerateLog(args->at(0))) { 2584 if (ShouldGenerateLog(args->at(0))) {
2584 Load(args->at(1)); 2585 Load(args->at(1));
2585 Load(args->at(2)); 2586 Load(args->at(2));
2586 __ CallRuntime(Runtime::kLog, 2); 2587 __ CallRuntime(Runtime::kLog, 2);
2587 } 2588 }
2589 #endif
2588 __ mov(r0, Operand(Factory::undefined_value())); 2590 __ mov(r0, Operand(Factory::undefined_value()));
2589 frame_->Push(r0); 2591 frame_->Push(r0);
2590 } 2592 }
2591 2593
2592 2594
2593 void CodeGenerator::GenerateIsNonNegativeSmi(ZoneList<Expression*>* args) { 2595 void CodeGenerator::GenerateIsNonNegativeSmi(ZoneList<Expression*>* args) {
2594 ASSERT(args->length() == 1); 2596 ASSERT(args->length() == 1);
2595 Load(args->at(0)); 2597 Load(args->at(0));
2596 frame_->Pop(r0); 2598 frame_->Pop(r0);
2597 __ tst(r0, Operand(kSmiTagMask | 0x80000000)); 2599 __ tst(r0, Operand(kSmiTagMask | 0x80000000));
(...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after
4348 __ mov(r2, Operand(0)); 4350 __ mov(r2, Operand(0));
4349 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); 4351 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION);
4350 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), 4352 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)),
4351 RelocInfo::CODE_TARGET); 4353 RelocInfo::CODE_TARGET);
4352 } 4354 }
4353 4355
4354 4356
4355 #undef __ 4357 #undef __
4356 4358
4357 } } // namespace v8::internal 4359 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen-arm.h ('k') | src/codegen-ia32.h » ('j') | src/log.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698