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

Side by Side Diff: src/builtins.cc

Issue 24791002: Thumb2 Backend: Thumb2 changes for Deoptimization and Code Aging Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/assembler.cc ('k') | src/debug.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 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1742 Generator g = FUNCTION_CAST<Generator>(functions[i].generator); 1742 Generator g = FUNCTION_CAST<Generator>(functions[i].generator);
1743 // We pass all arguments to the generator, but it may not use all of 1743 // We pass all arguments to the generator, but it may not use all of
1744 // them. This works because the first arguments are on top of the 1744 // them. This works because the first arguments are on top of the
1745 // stack. 1745 // stack.
1746 ASSERT(!masm.has_frame()); 1746 ASSERT(!masm.has_frame());
1747 g(&masm, functions[i].name, functions[i].extra_args); 1747 g(&masm, functions[i].name, functions[i].extra_args);
1748 // Move the code into the object heap. 1748 // Move the code into the object heap.
1749 CodeDesc desc; 1749 CodeDesc desc;
1750 masm.GetCode(&desc); 1750 masm.GetCode(&desc);
1751 Code::Flags flags = functions[i].flags; 1751 Code::Flags flags = functions[i].flags;
1752 if (masm.is_thumb_mode()) {
1753 flags = Code::SetThumbModeInFlags(flags);
1754 }
1752 Object* code = NULL; 1755 Object* code = NULL;
1753 { 1756 {
1754 // During startup it's OK to always allocate and defer GC to later. 1757 // During startup it's OK to always allocate and defer GC to later.
1755 // This simplifies things because we don't need to retry. 1758 // This simplifies things because we don't need to retry.
1756 AlwaysAllocateScope __scope__; 1759 AlwaysAllocateScope __scope__;
1757 { MaybeObject* maybe_code = 1760 { MaybeObject* maybe_code =
1758 heap->CreateCode(desc, flags, masm.CodeObject()); 1761 heap->CreateCode(desc, flags, masm.CodeObject());
1759 if (!maybe_code->ToObject(&code)) { 1762 if (!maybe_code->ToObject(&code)) {
1760 v8::internal::V8::FatalProcessOutOfMemory("CreateCode"); 1763 v8::internal::V8::FatalProcessOutOfMemory("CreateCode");
1761 } 1764 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 return Handle<Code>(code_address); \ 1829 return Handle<Code>(code_address); \
1827 } 1830 }
1828 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) 1831 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C)
1829 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) 1832 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A)
1830 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) 1833 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A)
1831 #undef DEFINE_BUILTIN_ACCESSOR_C 1834 #undef DEFINE_BUILTIN_ACCESSOR_C
1832 #undef DEFINE_BUILTIN_ACCESSOR_A 1835 #undef DEFINE_BUILTIN_ACCESSOR_A
1833 1836
1834 1837
1835 } } // namespace v8::internal 1838 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698