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

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

Issue 12314155: Allow direct allocation in old pointer space. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/ia32/code-stubs-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 __ push(ecx); 1482 __ push(ecx);
1483 __ push(Immediate(Smi::FromInt(expr->literal_index()))); 1483 __ push(Immediate(Smi::FromInt(expr->literal_index())));
1484 __ push(Immediate(expr->pattern())); 1484 __ push(Immediate(expr->pattern()));
1485 __ push(Immediate(expr->flags())); 1485 __ push(Immediate(expr->flags()));
1486 __ CallRuntime(Runtime::kMaterializeRegExpLiteral, 4); 1486 __ CallRuntime(Runtime::kMaterializeRegExpLiteral, 4);
1487 __ mov(ebx, eax); 1487 __ mov(ebx, eax);
1488 1488
1489 __ bind(&materialized); 1489 __ bind(&materialized);
1490 int size = JSRegExp::kSize + JSRegExp::kInObjectFieldCount * kPointerSize; 1490 int size = JSRegExp::kSize + JSRegExp::kInObjectFieldCount * kPointerSize;
1491 Label allocated, runtime_allocate; 1491 Label allocated, runtime_allocate;
1492 __ AllocateInNewSpace(size, eax, ecx, edx, &runtime_allocate, TAG_OBJECT); 1492 __ Allocate(size, eax, ecx, edx, &runtime_allocate, TAG_OBJECT);
1493 __ jmp(&allocated); 1493 __ jmp(&allocated);
1494 1494
1495 __ bind(&runtime_allocate); 1495 __ bind(&runtime_allocate);
1496 __ push(ebx); 1496 __ push(ebx);
1497 __ push(Immediate(Smi::FromInt(size))); 1497 __ push(Immediate(Smi::FromInt(size)));
1498 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); 1498 __ CallRuntime(Runtime::kAllocateInNewSpace, 1);
1499 __ pop(ebx); 1499 __ pop(ebx);
1500 1500
1501 __ bind(&allocated); 1501 __ bind(&allocated);
1502 // Copy the content into the newly allocated memory. 1502 // Copy the content into the newly allocated memory.
(...skipping 3070 matching lines...) Expand 10 before | Expand all | Expand 10 after
4573 *stack_depth = 0; 4573 *stack_depth = 0;
4574 *context_length = 0; 4574 *context_length = 0;
4575 return previous_; 4575 return previous_;
4576 } 4576 }
4577 4577
4578 #undef __ 4578 #undef __
4579 4579
4580 } } // namespace v8::internal 4580 } } // namespace v8::internal
4581 4581
4582 #endif // V8_TARGET_ARCH_IA32 4582 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698