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/ia32/stub-cache-ia32.cc

Issue 3961005: Implement --noinline-new flag fully on x64 and ia32 platforms. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 2 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/ia32/macro-assembler-ia32.cc ('k') | src/x64/macro-assembler-x64.cc » ('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-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after
1458 __ ret((argc + 1) * kPointerSize); 1458 __ ret((argc + 1) * kPointerSize);
1459 1459
1460 __ bind(&with_write_barrier); 1460 __ bind(&with_write_barrier);
1461 1461
1462 __ InNewSpace(ebx, ecx, equal, &exit); 1462 __ InNewSpace(ebx, ecx, equal, &exit);
1463 1463
1464 __ RecordWriteHelper(ebx, edx, ecx); 1464 __ RecordWriteHelper(ebx, edx, ecx);
1465 __ ret((argc + 1) * kPointerSize); 1465 __ ret((argc + 1) * kPointerSize);
1466 1466
1467 __ bind(&attempt_to_grow_elements); 1467 __ bind(&attempt_to_grow_elements);
1468 if (!FLAG_inline_new) {
1469 __ jmp(&call_builtin);
1470 }
1471
1468 ExternalReference new_space_allocation_top = 1472 ExternalReference new_space_allocation_top =
1469 ExternalReference::new_space_allocation_top_address(); 1473 ExternalReference::new_space_allocation_top_address();
1470 ExternalReference new_space_allocation_limit = 1474 ExternalReference new_space_allocation_limit =
1471 ExternalReference::new_space_allocation_limit_address(); 1475 ExternalReference::new_space_allocation_limit_address();
1472 1476
1473 const int kAllocationDelta = 4; 1477 const int kAllocationDelta = 4;
1474 // Load top. 1478 // Load top.
1475 __ mov(ecx, Operand::StaticVariable(new_space_allocation_top)); 1479 __ mov(ecx, Operand::StaticVariable(new_space_allocation_top));
1476 1480
1477 // Check if it's the end of elements. 1481 // Check if it's the end of elements.
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after
3064 // Return the generated code. 3068 // Return the generated code.
3065 return GetCode(); 3069 return GetCode();
3066 } 3070 }
3067 3071
3068 3072
3069 #undef __ 3073 #undef __
3070 3074
3071 } } // namespace v8::internal 3075 } } // namespace v8::internal
3072 3076
3073 #endif // V8_TARGET_ARCH_IA32 3077 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698