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

Side by Side Diff: src/codegen.cc

Issue 6698015: Implement strict mode arguments caller/callee. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Kevin's feedback. Created 9 years, 9 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/code-stubs.h ('k') | src/codegen-inl.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 : "GenericUnaryOpStub_BIT_NOT_Alloc"; 468 : "GenericUnaryOpStub_BIT_NOT_Alloc";
469 default: 469 default:
470 UNREACHABLE(); 470 UNREACHABLE();
471 return "<unknown>"; 471 return "<unknown>";
472 } 472 }
473 } 473 }
474 474
475 475
476 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { 476 void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
477 switch (type_) { 477 switch (type_) {
478 case READ_ELEMENT: GenerateReadElement(masm); break; 478 case READ_ELEMENT:
479 case NEW_OBJECT: GenerateNewObject(masm); break; 479 GenerateReadElement(masm);
480 break;
481 case NEW_NON_STRICT:
482 case NEW_STRICT:
483 GenerateNewObject(masm);
484 break;
480 } 485 }
481 } 486 }
482 487
483 488
484 int CEntryStub::MinorKey() { 489 int CEntryStub::MinorKey() {
485 ASSERT(result_size_ == 1 || result_size_ == 2); 490 ASSERT(result_size_ == 1 || result_size_ == 2);
486 int result = save_doubles_ ? 1 : 0; 491 int result = save_doubles_ ? 1 : 0;
487 #ifdef _WIN64 492 #ifdef _WIN64
488 return result | ((result_size_ == 1) ? 0 : 2); 493 return result | ((result_size_ == 1) ? 0 : 2);
489 #else 494 #else
490 return result; 495 return result;
491 #endif 496 #endif
492 } 497 }
493 498
494 499
495 } } // namespace v8::internal 500 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/codegen-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698