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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 1463803002: [debugger] flood function for stepping before calling it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase, ports, deoptimize builtins Created 5 years 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
OLDNEW
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 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/base/flags.h" 10 #include "src/base/flags.h"
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 ExternalReference roots_array_start = 364 ExternalReference roots_array_start =
365 ExternalReference::roots_array_start(isolate()); 365 ExternalReference::roots_array_start(isolate());
366 Move(kRootRegister, roots_array_start); 366 Move(kRootRegister, roots_array_start);
367 addp(kRootRegister, Immediate(kRootRegisterBias)); 367 addp(kRootRegister, Immediate(kRootRegisterBias));
368 } 368 }
369 369
370 // --------------------------------------------------------------------------- 370 // ---------------------------------------------------------------------------
371 // JavaScript invokes 371 // JavaScript invokes
372 372
373 // Invoke the JavaScript function code by either calling or jumping. 373 // Invoke the JavaScript function code by either calling or jumping.
374 void InvokeCode(Register code, 374 void InvokeFunctionCode(Register function, Register new_target,
375 Register new_target, 375 const ParameterCount& expected,
376 const ParameterCount& expected, 376 const ParameterCount& actual, InvokeFlag flag,
377 const ParameterCount& actual, 377 const CallWrapper& call_wrapper);
378 InvokeFlag flag,
379 const CallWrapper& call_wrapper);
380 378
381 // Invoke the JavaScript function in the given register. Changes the 379 // Invoke the JavaScript function in the given register. Changes the
382 // current context to the context in the function before invoking. 380 // current context to the context in the function before invoking.
383 void InvokeFunction(Register function, 381 void InvokeFunction(Register function,
384 Register new_target, 382 Register new_target,
385 const ParameterCount& actual, 383 const ParameterCount& actual,
386 InvokeFlag flag, 384 InvokeFlag flag,
387 const CallWrapper& call_wrapper); 385 const CallWrapper& call_wrapper);
388 386
389 void InvokeFunction(Register function, 387 void InvokeFunction(Register function,
390 Register new_target, 388 Register new_target,
391 const ParameterCount& expected, 389 const ParameterCount& expected,
392 const ParameterCount& actual, 390 const ParameterCount& actual,
393 InvokeFlag flag, 391 InvokeFlag flag,
394 const CallWrapper& call_wrapper); 392 const CallWrapper& call_wrapper);
395 393
396 void InvokeFunction(Handle<JSFunction> function, 394 void InvokeFunction(Handle<JSFunction> function,
397 const ParameterCount& expected, 395 const ParameterCount& expected,
398 const ParameterCount& actual, 396 const ParameterCount& actual,
399 InvokeFlag flag, 397 InvokeFlag flag,
400 const CallWrapper& call_wrapper); 398 const CallWrapper& call_wrapper);
401 399
402 // Invoke specified builtin JavaScript function. 400 // Invoke specified builtin JavaScript function.
403 void InvokeBuiltin(int native_context_index, InvokeFlag flag, 401 void InvokeBuiltin(int native_context_index, InvokeFlag flag,
404 const CallWrapper& call_wrapper = NullCallWrapper()); 402 const CallWrapper& call_wrapper = NullCallWrapper());
405 403
406 // Store the function for the given builtin in the target register. 404 // Store the function for the given builtin in the target register.
407 void GetBuiltinFunction(Register target, int native_context_index); 405 void GetBuiltinFunction(Register target, int native_context_index);
408 406
409 // Store the code object for the given builtin in the target register.
410 void GetBuiltinEntry(Register target, int native_context_index);
411
412
413 // --------------------------------------------------------------------------- 407 // ---------------------------------------------------------------------------
414 // Smi tagging, untagging and operations on tagged smis. 408 // Smi tagging, untagging and operations on tagged smis.
415 409
416 // Support for constant splitting. 410 // Support for constant splitting.
417 bool IsUnsafeInt(const int32_t x); 411 bool IsUnsafeInt(const int32_t x);
418 void SafeMove(Register dst, Smi* src); 412 void SafeMove(Register dst, Smi* src);
419 void SafePush(Smi* src); 413 void SafePush(Smi* src);
420 414
421 // Conversions between tagged smi values and non-tagged integer values. 415 // Conversions between tagged smi values and non-tagged integer values.
422 416
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 1581
1588 // Helper functions for generating invokes. 1582 // Helper functions for generating invokes.
1589 void InvokePrologue(const ParameterCount& expected, 1583 void InvokePrologue(const ParameterCount& expected,
1590 const ParameterCount& actual, 1584 const ParameterCount& actual,
1591 Label* done, 1585 Label* done,
1592 bool* definitely_mismatches, 1586 bool* definitely_mismatches,
1593 InvokeFlag flag, 1587 InvokeFlag flag,
1594 Label::Distance near_jump, 1588 Label::Distance near_jump,
1595 const CallWrapper& call_wrapper); 1589 const CallWrapper& call_wrapper);
1596 1590
1591 void FloodFunctionIfStepping(Register fun, Register new_target,
1592 const ParameterCount& expected,
1593 const ParameterCount& actual);
1594
1597 void EnterExitFramePrologue(bool save_rax); 1595 void EnterExitFramePrologue(bool save_rax);
1598 1596
1599 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack 1597 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack
1600 // accessible via StackSpaceOperand. 1598 // accessible via StackSpaceOperand.
1601 void EnterExitFrameEpilogue(int arg_stack_space, bool save_doubles); 1599 void EnterExitFrameEpilogue(int arg_stack_space, bool save_doubles);
1602 1600
1603 void LeaveExitFrameEpilogue(bool restore_context); 1601 void LeaveExitFrameEpilogue(bool restore_context);
1604 1602
1605 // Allocation support helpers. 1603 // Allocation support helpers.
1606 // Loads the top of new-space into the result register. 1604 // Loads the top of new-space into the result register.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 } \ 1732 } \
1735 masm-> 1733 masm->
1736 #else 1734 #else
1737 #define ACCESS_MASM(masm) masm-> 1735 #define ACCESS_MASM(masm) masm->
1738 #endif 1736 #endif
1739 1737
1740 } // namespace internal 1738 } // namespace internal
1741 } // namespace v8 1739 } // namespace v8
1742 1740
1743 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1741 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« src/js/macros.py ('K') | « src/x64/builtins-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698