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

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

Issue 460109: Perform string add in generated code on X64 platform... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/codegen-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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 // un-done. 511 // un-done.
512 void UndoAllocationInNewSpace(Register object); 512 void UndoAllocationInNewSpace(Register object);
513 513
514 // Allocate a heap number in new space with undefined value. Returns 514 // Allocate a heap number in new space with undefined value. Returns
515 // tagged pointer in result register, or jumps to gc_required if new 515 // tagged pointer in result register, or jumps to gc_required if new
516 // space is full. 516 // space is full.
517 void AllocateHeapNumber(Register result, 517 void AllocateHeapNumber(Register result,
518 Register scratch, 518 Register scratch,
519 Label* gc_required); 519 Label* gc_required);
520 520
521 // Allocate a sequential string. All the header fields of the string object
522 // are initialized.
523 void AllocateTwoByteString(Register result,
524 Register length,
525 Register scratch1,
526 Register scratch2,
527 Register scratch3,
528 Label* gc_required);
529 void AllocateAsciiString(Register result,
530 Register length,
531 Register scratch1,
532 Register scratch2,
533 Register scratch3,
534 Label* gc_required);
535
536 // Allocate a raw cons string object. Only the map field of the result is
537 // initialized.
538 void AllocateConsString(Register result,
539 Register scratch1,
540 Register scratch2,
541 Label* gc_required);
542 void AllocateAsciiConsString(Register result,
543 Register scratch1,
544 Register scratch2,
545 Label* gc_required);
546
521 // --------------------------------------------------------------------------- 547 // ---------------------------------------------------------------------------
522 // Support functions. 548 // Support functions.
523 549
524 // Check if result is zero and op is negative. 550 // Check if result is zero and op is negative.
525 void NegativeZeroTest(Register result, Register op, Label* then_label); 551 void NegativeZeroTest(Register result, Register op, Label* then_label);
526 552
527 // Check if result is zero and op is negative in code using jump targets. 553 // Check if result is zero and op is negative in code using jump targets.
528 void NegativeZeroTest(CodeGenerator* cgen, 554 void NegativeZeroTest(CodeGenerator* cgen,
529 Register result, 555 Register result,
530 Register op, 556 Register op,
(...skipping 19 matching lines...) Expand all
550 576
551 // Find the function context up the context chain. 577 // Find the function context up the context chain.
552 void LoadContext(Register dst, int context_chain_length); 578 void LoadContext(Register dst, int context_chain_length);
553 579
554 // --------------------------------------------------------------------------- 580 // ---------------------------------------------------------------------------
555 // Runtime calls 581 // Runtime calls
556 582
557 // Call a code stub. 583 // Call a code stub.
558 void CallStub(CodeStub* stub); 584 void CallStub(CodeStub* stub);
559 585
586 // Tail call a code stub (jump).
587 void TailCallStub(CodeStub* stub);
588
560 // Return from a code stub after popping its arguments. 589 // Return from a code stub after popping its arguments.
561 void StubReturn(int argc); 590 void StubReturn(int argc);
562 591
563 // Call a runtime routine. 592 // Call a runtime routine.
564 // Eventually this should be used for all C calls. 593 // Eventually this should be used for all C calls.
565 void CallRuntime(Runtime::Function* f, int num_arguments); 594 void CallRuntime(Runtime::Function* f, int num_arguments);
566 595
567 // Convenience function: Same as above, but takes the fid instead. 596 // Convenience function: Same as above, but takes the fid instead.
568 void CallRuntime(Runtime::FunctionId id, int num_arguments); 597 void CallRuntime(Runtime::FunctionId id, int num_arguments);
569 598
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 } \ 745 } \
717 masm-> 746 masm->
718 #else 747 #else
719 #define ACCESS_MASM(masm) masm-> 748 #define ACCESS_MASM(masm) masm->
720 #endif 749 #endif
721 750
722 751
723 } } // namespace v8::internal 752 } } // namespace v8::internal
724 753
725 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 754 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698