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

Side by Side Diff: src/ia32/assembler-ia32.cc

Issue 3970005: Make Failure inherit from MaybeObject instead of Object. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 1 month 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/heap-inl.h ('k') | src/ia32/macro-assembler-ia32.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 __ mov(esp, Operand(ebp)); 113 __ mov(esp, Operand(ebp));
114 __ pop(ebx); 114 __ pop(ebx);
115 __ pop(ecx); 115 __ pop(ecx);
116 __ popfd(); 116 __ popfd();
117 __ pop(ebp); 117 __ pop(ebp);
118 __ ret(0); 118 __ ret(0);
119 #undef __ 119 #undef __
120 120
121 CodeDesc desc; 121 CodeDesc desc;
122 assm.GetCode(&desc); 122 assm.GetCode(&desc);
123 Object* code = Heap::CreateCode(desc, 123
124 Code::ComputeFlags(Code::STUB), 124 Object* code;
125 Handle<Code>::null()); 125 { MaybeObject* maybe_code = Heap::CreateCode(desc,
126 Code::ComputeFlags(Code::STUB),
127 Handle<Code>::null());
128 if (!maybe_code->ToObject(&code)) return;
129 }
126 if (!code->IsCode()) return; 130 if (!code->IsCode()) return;
131
127 PROFILE(CodeCreateEvent(Logger::BUILTIN_TAG, 132 PROFILE(CodeCreateEvent(Logger::BUILTIN_TAG,
128 Code::cast(code), "CpuFeatures::Probe")); 133 Code::cast(code), "CpuFeatures::Probe"));
129 typedef uint64_t (*F0)(); 134 typedef uint64_t (*F0)();
130 F0 probe = FUNCTION_CAST<F0>(Code::cast(code)->entry()); 135 F0 probe = FUNCTION_CAST<F0>(Code::cast(code)->entry());
131 supported_ = probe(); 136 supported_ = probe();
132 found_by_runtime_probing_ = supported_; 137 found_by_runtime_probing_ = supported_;
133 uint64_t os_guarantees = OS::CpuFeaturesImpliedByPlatform(); 138 uint64_t os_guarantees = OS::CpuFeaturesImpliedByPlatform();
134 supported_ |= os_guarantees; 139 supported_ |= os_guarantees;
135 found_by_runtime_probing_ &= ~os_guarantees; 140 found_by_runtime_probing_ &= ~os_guarantees;
136 } 141 }
(...skipping 2554 matching lines...) Expand 10 before | Expand all | Expand 10 after
2691 fprintf(coverage_log, "%s\n", file_line); 2696 fprintf(coverage_log, "%s\n", file_line);
2692 fflush(coverage_log); 2697 fflush(coverage_log);
2693 } 2698 }
2694 } 2699 }
2695 2700
2696 #endif 2701 #endif
2697 2702
2698 } } // namespace v8::internal 2703 } } // namespace v8::internal
2699 2704
2700 #endif // V8_TARGET_ARCH_IA32 2705 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698