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

Side by Side Diff: src/runtime/runtime-test.cc

Issue 2848193003: [tests] Fix mjsunit/getters-on-elements (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | test/mjsunit/getters-on-elements.js » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/assembler-inl.h" 10 #include "src/assembler-inl.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 HandleScope scope(isolate); 158 HandleScope scope(isolate);
159 DCHECK_EQ(1, args.length()); 159 DCHECK_EQ(1, args.length());
160 160
161 // This function is used by fuzzers to get coverage in compiler. 161 // This function is used by fuzzers to get coverage in compiler.
162 // Ignore calls on non-function objects to avoid runtime errors. 162 // Ignore calls on non-function objects to avoid runtime errors.
163 CONVERT_ARG_HANDLE_CHECKED(Object, function_object, 0); 163 CONVERT_ARG_HANDLE_CHECKED(Object, function_object, 0);
164 if (!function_object->IsJSFunction()) { 164 if (!function_object->IsJSFunction()) {
165 return isolate->heap()->undefined_value(); 165 return isolate->heap()->undefined_value();
166 } 166 }
167 Handle<JSFunction> function = Handle<JSFunction>::cast(function_object); 167 Handle<JSFunction> function = Handle<JSFunction>::cast(function_object);
168 function->shared()->set_marked_for_tier_up(false);
168 169
169 // If the function is not optimized, just return. 170 // If the function is not optimized, just return.
170 if (!function->IsOptimized()) return isolate->heap()->undefined_value(); 171 if (!function->IsOptimized()) return isolate->heap()->undefined_value();
171 172
172 // TODO(turbofan): Deoptimization is not supported yet. 173 // TODO(turbofan): Deoptimization is not supported yet.
173 if (function->code()->is_turbofanned() && 174 if (function->code()->is_turbofanned() &&
174 function->shared()->asm_function()) { 175 function->shared()->asm_function()) {
175 return isolate->heap()->undefined_value(); 176 return isolate->heap()->undefined_value();
176 } 177 }
177 178
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 return isolate->heap()->undefined_value(); 1029 return isolate->heap()->undefined_value();
1029 } 1030 }
1030 1031
1031 RUNTIME_FUNCTION(Runtime_DecrementWaitCount) { 1032 RUNTIME_FUNCTION(Runtime_DecrementWaitCount) {
1032 isolate->DecrementWaitCountForTesting(); 1033 isolate->DecrementWaitCountForTesting();
1033 return isolate->heap()->undefined_value(); 1034 return isolate->heap()->undefined_value();
1034 } 1035 }
1035 1036
1036 } // namespace internal 1037 } // namespace internal
1037 } // namespace v8 1038 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/getters-on-elements.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698