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

Side by Side Diff: src/codegen.cc

Issue 6026017: Fix/implement new write barrier for x64. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 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 | « no previous file | src/heap.h » ('j') | src/x64/code-stubs-x64.cc » ('J')
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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { 466 void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
467 switch (type_) { 467 switch (type_) {
468 case READ_ELEMENT: GenerateReadElement(masm); break; 468 case READ_ELEMENT: GenerateReadElement(masm); break;
469 case NEW_OBJECT: GenerateNewObject(masm); break; 469 case NEW_OBJECT: GenerateNewObject(masm); break;
470 } 470 }
471 } 471 }
472 472
473 473
474 int CEntryStub::MinorKey() { 474 int CEntryStub::MinorKey() {
475 int result = (save_doubles_ == kSaveFPRegs) ? 1 : 0; 475 int result = (save_doubles_ == kSaveFPRegs) ? 1 : 0;
476 ASSERT(result_size_ == 1 || result_size_ == 2);
476 #ifdef _WIN64 477 #ifdef _WIN64
477 ASSERT(result_size_ == 1 || result_size_ == 2);
478 return result | ((result_size_ == 1) ? 0 : 2); 478 return result | ((result_size_ == 1) ? 0 : 2);
479 #else 479 #else
480 ASSERT(result_size_ == 1);
481 return result; 480 return result;
482 #endif 481 #endif
483 } 482 }
484 483
485 484
486 } } // namespace v8::internal 485 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/heap.h » ('j') | src/x64/code-stubs-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698