| OLD | NEW | 
|     1 // Copyright 2012 the V8 project authors. All rights reserved. |     1 // Copyright 2012 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/v8.h" |     5 #include "src/v8.h" | 
|     6  |     6  | 
|     7 #if V8_TARGET_ARCH_X64 |     7 #if V8_TARGET_ARCH_X64 | 
|     8  |     8  | 
|     9 #include "src/code-stubs.h" |     9 #include "src/code-stubs.h" | 
|    10 #include "src/codegen.h" |    10 #include "src/codegen.h" | 
| (...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1282   // space for nested functions that don't need literals cloning. If |  1282   // space for nested functions that don't need literals cloning. If | 
|  1283   // we're running with the --always-opt or the --prepare-always-opt |  1283   // we're running with the --always-opt or the --prepare-always-opt | 
|  1284   // flag, we need to use the runtime function so that the new function |  1284   // flag, we need to use the runtime function so that the new function | 
|  1285   // we are creating here gets a chance to have its code optimized and |  1285   // we are creating here gets a chance to have its code optimized and | 
|  1286   // doesn't just get a copy of the existing unoptimized code. |  1286   // doesn't just get a copy of the existing unoptimized code. | 
|  1287   if (!FLAG_always_opt && |  1287   if (!FLAG_always_opt && | 
|  1288       !FLAG_prepare_always_opt && |  1288       !FLAG_prepare_always_opt && | 
|  1289       !pretenure && |  1289       !pretenure && | 
|  1290       scope()->is_function_scope() && |  1290       scope()->is_function_scope() && | 
|  1291       info->num_literals() == 0) { |  1291       info->num_literals() == 0) { | 
|  1292     FastNewClosureStub stub(isolate(), |  1292     FastNewClosureStub stub(isolate(), info->strict_mode(), | 
|  1293                             info->strict_mode(), |  1293                             info->is_generator(), info->is_concise_method()); | 
|  1294                             info->is_generator()); |  | 
|  1295     __ Move(rbx, info); |  1294     __ Move(rbx, info); | 
|  1296     __ CallStub(&stub); |  1295     __ CallStub(&stub); | 
|  1297   } else { |  1296   } else { | 
|  1298     __ Push(rsi); |  1297     __ Push(rsi); | 
|  1299     __ Push(info); |  1298     __ Push(info); | 
|  1300     __ Push(pretenure |  1299     __ Push(pretenure | 
|  1301             ? isolate()->factory()->true_value() |  1300             ? isolate()->factory()->true_value() | 
|  1302             : isolate()->factory()->false_value()); |  1301             : isolate()->factory()->false_value()); | 
|  1303     __ CallRuntime(Runtime::kNewClosure, 3); |  1302     __ CallRuntime(Runtime::kNewClosure, 3); | 
|  1304   } |  1303   } | 
| (...skipping 3527 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  4832   DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |  4831   DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 
|  4833             Assembler::target_address_at(call_target_address, |  4832             Assembler::target_address_at(call_target_address, | 
|  4834                                          unoptimized_code)); |  4833                                          unoptimized_code)); | 
|  4835   return OSR_AFTER_STACK_CHECK; |  4834   return OSR_AFTER_STACK_CHECK; | 
|  4836 } |  4835 } | 
|  4837  |  4836  | 
|  4838  |  4837  | 
|  4839 } }  // namespace v8::internal |  4838 } }  // namespace v8::internal | 
|  4840  |  4839  | 
|  4841 #endif  // V8_TARGET_ARCH_X64 |  4840 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW |