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

Side by Side Diff: src/builtins.cc

Issue 11035053: Rollback trunk to bleeding_edge revision 12525 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 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/bootstrapper.cc ('k') | src/code-stubs.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 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 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 Heap* heap = isolate->heap(); 1613 Heap* heap = isolate->heap();
1614 1614
1615 // Create a scope for the handles in the builtins. 1615 // Create a scope for the handles in the builtins.
1616 HandleScope scope(isolate); 1616 HandleScope scope(isolate);
1617 1617
1618 const BuiltinDesc* functions = builtin_function_table.functions(); 1618 const BuiltinDesc* functions = builtin_function_table.functions();
1619 1619
1620 // For now we generate builtin adaptor code into a stack-allocated 1620 // For now we generate builtin adaptor code into a stack-allocated
1621 // buffer, before copying it into individual code objects. Be careful 1621 // buffer, before copying it into individual code objects. Be careful
1622 // with alignment, some platforms don't like unaligned code. 1622 // with alignment, some platforms don't like unaligned code.
1623 union { int force_alignment; byte buffer[8*KB]; } u; 1623 union { int force_alignment; byte buffer[4*KB]; } u;
1624 1624
1625 // Traverse the list of builtins and generate an adaptor in a 1625 // Traverse the list of builtins and generate an adaptor in a
1626 // separate code object for each one. 1626 // separate code object for each one.
1627 for (int i = 0; i < builtin_count; i++) { 1627 for (int i = 0; i < builtin_count; i++) {
1628 if (create_heap_objects) { 1628 if (create_heap_objects) {
1629 MacroAssembler masm(isolate, u.buffer, sizeof u.buffer); 1629 MacroAssembler masm(isolate, u.buffer, sizeof u.buffer);
1630 // Generate the code/adaptor. 1630 // Generate the code/adaptor.
1631 typedef void (*Generator)(MacroAssembler*, int, BuiltinExtraArguments); 1631 typedef void (*Generator)(MacroAssembler*, int, BuiltinExtraArguments);
1632 Generator g = FUNCTION_CAST<Generator>(functions[i].generator); 1632 Generator g = FUNCTION_CAST<Generator>(functions[i].generator);
1633 // We pass all arguments to the generator, but it may not use all of 1633 // We pass all arguments to the generator, but it may not use all of
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 return Handle<Code>(code_address); \ 1716 return Handle<Code>(code_address); \
1717 } 1717 }
1718 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) 1718 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C)
1719 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) 1719 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A)
1720 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) 1720 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A)
1721 #undef DEFINE_BUILTIN_ACCESSOR_C 1721 #undef DEFINE_BUILTIN_ACCESSOR_C
1722 #undef DEFINE_BUILTIN_ACCESSOR_A 1722 #undef DEFINE_BUILTIN_ACCESSOR_A
1723 1723
1724 1724
1725 } } // namespace v8::internal 1725 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698