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

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

Issue 132623005: A64: Synchronize with r18642. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/x64/lithium-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 void InitializeRootRegister() { 335 void InitializeRootRegister() {
336 ExternalReference roots_array_start = 336 ExternalReference roots_array_start =
337 ExternalReference::roots_array_start(isolate()); 337 ExternalReference::roots_array_start(isolate());
338 Move(kRootRegister, roots_array_start); 338 Move(kRootRegister, roots_array_start);
339 addq(kRootRegister, Immediate(kRootRegisterBias)); 339 addq(kRootRegister, Immediate(kRootRegisterBias));
340 } 340 }
341 341
342 // --------------------------------------------------------------------------- 342 // ---------------------------------------------------------------------------
343 // JavaScript invokes 343 // JavaScript invokes
344 344
345 // Set up call kind marking in rcx. The method takes rcx as an
346 // explicit first parameter to make the code more readable at the
347 // call sites.
348 void SetCallKind(Register dst, CallKind kind);
349
350 // Invoke the JavaScript function code by either calling or jumping. 345 // Invoke the JavaScript function code by either calling or jumping.
351 void InvokeCode(Register code, 346 void InvokeCode(Register code,
352 const ParameterCount& expected, 347 const ParameterCount& expected,
353 const ParameterCount& actual, 348 const ParameterCount& actual,
354 InvokeFlag flag, 349 InvokeFlag flag,
355 const CallWrapper& call_wrapper, 350 const CallWrapper& call_wrapper);
356 CallKind call_kind);
357
358 void InvokeCode(Handle<Code> code,
359 const ParameterCount& expected,
360 const ParameterCount& actual,
361 RelocInfo::Mode rmode,
362 InvokeFlag flag,
363 const CallWrapper& call_wrapper,
364 CallKind call_kind);
365 351
366 // Invoke the JavaScript function in the given register. Changes the 352 // Invoke the JavaScript function in the given register. Changes the
367 // current context to the context in the function before invoking. 353 // current context to the context in the function before invoking.
368 void InvokeFunction(Register function, 354 void InvokeFunction(Register function,
369 const ParameterCount& actual, 355 const ParameterCount& actual,
370 InvokeFlag flag, 356 InvokeFlag flag,
371 const CallWrapper& call_wrapper, 357 const CallWrapper& call_wrapper);
372 CallKind call_kind);
373 358
374 void InvokeFunction(Register function, 359 void InvokeFunction(Register function,
375 const ParameterCount& expected, 360 const ParameterCount& expected,
376 const ParameterCount& actual, 361 const ParameterCount& actual,
377 InvokeFlag flag, 362 InvokeFlag flag,
378 const CallWrapper& call_wrapper, 363 const CallWrapper& call_wrapper);
379 CallKind call_kind);
380 364
381 void InvokeFunction(Handle<JSFunction> function, 365 void InvokeFunction(Handle<JSFunction> function,
382 const ParameterCount& expected, 366 const ParameterCount& expected,
383 const ParameterCount& actual, 367 const ParameterCount& actual,
384 InvokeFlag flag, 368 InvokeFlag flag,
385 const CallWrapper& call_wrapper, 369 const CallWrapper& call_wrapper);
386 CallKind call_kind);
387 370
388 // Invoke specified builtin JavaScript function. Adds an entry to 371 // Invoke specified builtin JavaScript function. Adds an entry to
389 // the unresolved list if the name does not resolve. 372 // the unresolved list if the name does not resolve.
390 void InvokeBuiltin(Builtins::JavaScript id, 373 void InvokeBuiltin(Builtins::JavaScript id,
391 InvokeFlag flag, 374 InvokeFlag flag,
392 const CallWrapper& call_wrapper = NullCallWrapper()); 375 const CallWrapper& call_wrapper = NullCallWrapper());
393 376
394 // Store the function for the given builtin in the target register. 377 // Store the function for the given builtin in the target register.
395 void GetBuiltinFunction(Register target, Builtins::JavaScript id); 378 void GetBuiltinFunction(Register target, Builtins::JavaScript id);
396 379
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 1466
1484 // Helper functions for generating invokes. 1467 // Helper functions for generating invokes.
1485 void InvokePrologue(const ParameterCount& expected, 1468 void InvokePrologue(const ParameterCount& expected,
1486 const ParameterCount& actual, 1469 const ParameterCount& actual,
1487 Handle<Code> code_constant, 1470 Handle<Code> code_constant,
1488 Register code_register, 1471 Register code_register,
1489 Label* done, 1472 Label* done,
1490 bool* definitely_mismatches, 1473 bool* definitely_mismatches,
1491 InvokeFlag flag, 1474 InvokeFlag flag,
1492 Label::Distance near_jump = Label::kFar, 1475 Label::Distance near_jump = Label::kFar,
1493 const CallWrapper& call_wrapper = NullCallWrapper(), 1476 const CallWrapper& call_wrapper = NullCallWrapper());
1494 CallKind call_kind = CALL_AS_METHOD);
1495 1477
1496 void EnterExitFramePrologue(bool save_rax); 1478 void EnterExitFramePrologue(bool save_rax);
1497 1479
1498 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack 1480 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack
1499 // accessible via StackSpaceOperand. 1481 // accessible via StackSpaceOperand.
1500 void EnterExitFrameEpilogue(int arg_stack_space, bool save_doubles); 1482 void EnterExitFrameEpilogue(int arg_stack_space, bool save_doubles);
1501 1483
1502 void LeaveExitFrameEpilogue(bool restore_context); 1484 void LeaveExitFrameEpilogue(bool restore_context);
1503 1485
1504 // Allocation support helpers. 1486 // Allocation support helpers.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1633 masm->popfq(); \ 1615 masm->popfq(); \
1634 } \ 1616 } \
1635 masm-> 1617 masm->
1636 #else 1618 #else
1637 #define ACCESS_MASM(masm) masm-> 1619 #define ACCESS_MASM(masm) masm->
1638 #endif 1620 #endif
1639 1621
1640 } } // namespace v8::internal 1622 } } // namespace v8::internal
1641 1623
1642 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1624 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698