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

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

Issue 5122005: Add a fast case to Array.join when all the elements and the separator are fla... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 1 month 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/ia32/full-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // initialized. 372 // initialized.
373 void AllocateConsString(Register result, 373 void AllocateConsString(Register result,
374 Register scratch1, 374 Register scratch1,
375 Register scratch2, 375 Register scratch2,
376 Label* gc_required); 376 Label* gc_required);
377 void AllocateAsciiConsString(Register result, 377 void AllocateAsciiConsString(Register result,
378 Register scratch1, 378 Register scratch1,
379 Register scratch2, 379 Register scratch2,
380 Label* gc_required); 380 Label* gc_required);
381 381
382 // All registers must be distinct. Only current_string needs valid contents
383 // on entry. All registers may be invalid on exit. result_operand is
384 // unchanged, padding_chars is updated correctly.
385 // The top of new space must contain a sequential ascii string with
386 // padding_chars bytes free in its top word. The sequential ascii string
387 // current_string is concatenated to it, allocating the necessary amount
388 // of new memory.
389 void AppendStringToTopOfNewSpace(
390 Register current_string, // Tagged pointer to string to copy.
391 Register current_string_length,
392 Register result_pos,
393 Register scratch,
394 Register new_padding_chars,
395 Operand operand_result,
396 Operand operand_padding_chars,
397 Label* bailout);
398
382 // --------------------------------------------------------------------------- 399 // ---------------------------------------------------------------------------
383 // Support functions. 400 // Support functions.
384 401
385 // Check if result is zero and op is negative. 402 // Check if result is zero and op is negative.
386 void NegativeZeroTest(Register result, Register op, Label* then_label); 403 void NegativeZeroTest(Register result, Register op, Label* then_label);
387 404
388 // Check if result is zero and op is negative in code using jump targets. 405 // Check if result is zero and op is negative in code using jump targets.
389 void NegativeZeroTest(CodeGenerator* cgen, 406 void NegativeZeroTest(CodeGenerator* cgen,
390 Register result, 407 Register result,
391 Register op, 408 Register op,
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 } \ 715 } \
699 masm-> 716 masm->
700 #else 717 #else
701 #define ACCESS_MASM(masm) masm-> 718 #define ACCESS_MASM(masm) masm->
702 #endif 719 #endif
703 720
704 721
705 } } // namespace v8::internal 722 } } // namespace v8::internal
706 723
707 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 724 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698