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

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

Issue 18096: Experimental: merge from bleeding_edge. Merge up to and including... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
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 | Annotate | Revision Log
« no previous file with comments | « src/codegen-ia32.h ('k') | src/date-delay.js » ('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 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 3453 matching lines...) Expand 10 before | Expand all | Expand 10 after
3464 3464
3465 void CodeGenerator::GenerateLog(ZoneList<Expression*>* args) { 3465 void CodeGenerator::GenerateLog(ZoneList<Expression*>* args) {
3466 // Conditionally generate a log call. 3466 // Conditionally generate a log call.
3467 // Args: 3467 // Args:
3468 // 0 (literal string): The type of logging (corresponds to the flags). 3468 // 0 (literal string): The type of logging (corresponds to the flags).
3469 // This is used to determine whether or not to generate the log call. 3469 // This is used to determine whether or not to generate the log call.
3470 // 1 (string): Format string. Access the string at argument index 2 3470 // 1 (string): Format string. Access the string at argument index 2
3471 // with '%2s' (see Logger::LogRuntime for all the formats). 3471 // with '%2s' (see Logger::LogRuntime for all the formats).
3472 // 2 (array): Arguments to the format string. 3472 // 2 (array): Arguments to the format string.
3473 ASSERT_EQ(args->length(), 3); 3473 ASSERT_EQ(args->length(), 3);
3474 #ifdef ENABLE_LOGGING_AND_PROFILING
3474 if (ShouldGenerateLog(args->at(0))) { 3475 if (ShouldGenerateLog(args->at(0))) {
3475 LoadAndSpill(args->at(1)); 3476 LoadAndSpill(args->at(1));
3476 LoadAndSpill(args->at(2)); 3477 LoadAndSpill(args->at(2));
3477 frame_->CallRuntime(Runtime::kLog, 2); 3478 frame_->CallRuntime(Runtime::kLog, 2);
3478 } 3479 }
3480 #endif
3479 // Finally, we're expected to leave a value on the top of the stack. 3481 // Finally, we're expected to leave a value on the top of the stack.
3480 frame_->EmitPush(Immediate(Factory::undefined_value())); 3482 frame_->EmitPush(Immediate(Factory::undefined_value()));
3481 } 3483 }
3482 3484
3483 3485
3484 void CodeGenerator::GenerateIsNonNegativeSmi(ZoneList<Expression*>* args) { 3486 void CodeGenerator::GenerateIsNonNegativeSmi(ZoneList<Expression*>* args) {
3485 ASSERT(args->length() == 1); 3487 ASSERT(args->length() == 1);
3486 LoadAndSpill(args->at(0)); 3488 LoadAndSpill(args->at(0));
3487 frame_->EmitPop(eax); 3489 frame_->EmitPop(eax);
3488 __ test(eax, Immediate(kSmiTagMask | 0x80000000)); 3490 __ test(eax, Immediate(kSmiTagMask | 0x80000000));
(...skipping 2745 matching lines...) Expand 10 before | Expand all | Expand 10 after
6234 6236
6235 // Slow-case: Go through the JavaScript implementation. 6237 // Slow-case: Go through the JavaScript implementation.
6236 __ bind(&slow); 6238 __ bind(&slow);
6237 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); 6239 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION);
6238 } 6240 }
6239 6241
6240 6242
6241 #undef __ 6243 #undef __
6242 6244
6243 } } // namespace v8::internal 6245 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen-ia32.h ('k') | src/date-delay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698