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

Side by Side Diff: src/runtime.h

Issue 7261008: Improvement to SmiLexicalCompare (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 6 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/misc-intrinsics.h ('k') | src/runtime.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 } 512 }
513 StringInputBuffer* string_input_buffer_compare_bufy() { 513 StringInputBuffer* string_input_buffer_compare_bufy() {
514 return &string_input_buffer_compare_bufy_; 514 return &string_input_buffer_compare_bufy_;
515 } 515 }
516 StringInputBuffer* string_locale_compare_buf1() { 516 StringInputBuffer* string_locale_compare_buf1() {
517 return &string_locale_compare_buf1_; 517 return &string_locale_compare_buf1_;
518 } 518 }
519 StringInputBuffer* string_locale_compare_buf2() { 519 StringInputBuffer* string_locale_compare_buf2() {
520 return &string_locale_compare_buf2_; 520 return &string_locale_compare_buf2_;
521 } 521 }
522 int* smi_lexicographic_compare_x_elms() {
523 return smi_lexicographic_compare_x_elms_;
524 }
525 int* smi_lexicographic_compare_y_elms() {
526 return smi_lexicographic_compare_y_elms_;
527 }
528 522
529 private: 523 private:
530 RuntimeState() {} 524 RuntimeState() {}
531 // Non-reentrant string buffer for efficient general use in the runtime. 525 // Non-reentrant string buffer for efficient general use in the runtime.
532 StaticResource<StringInputBuffer> string_input_buffer_; 526 StaticResource<StringInputBuffer> string_input_buffer_;
533 unibrow::Mapping<unibrow::ToUppercase, 128> to_upper_mapping_; 527 unibrow::Mapping<unibrow::ToUppercase, 128> to_upper_mapping_;
534 unibrow::Mapping<unibrow::ToLowercase, 128> to_lower_mapping_; 528 unibrow::Mapping<unibrow::ToLowercase, 128> to_lower_mapping_;
535 StringInputBuffer string_input_buffer_compare_bufx_; 529 StringInputBuffer string_input_buffer_compare_bufx_;
536 StringInputBuffer string_input_buffer_compare_bufy_; 530 StringInputBuffer string_input_buffer_compare_bufy_;
537 StringInputBuffer string_locale_compare_buf1_; 531 StringInputBuffer string_locale_compare_buf1_;
538 StringInputBuffer string_locale_compare_buf2_; 532 StringInputBuffer string_locale_compare_buf2_;
539 int smi_lexicographic_compare_x_elms_[10];
540 int smi_lexicographic_compare_y_elms_[10];
541 533
542 friend class Isolate; 534 friend class Isolate;
543 friend class Runtime; 535 friend class Runtime;
544 536
545 DISALLOW_COPY_AND_ASSIGN(RuntimeState); 537 DISALLOW_COPY_AND_ASSIGN(RuntimeState);
546 }; 538 };
547 539
548 540
549 class Runtime : public AllStatic { 541 class Runtime : public AllStatic {
550 public: 542 public:
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 Handle<Script> script, 638 Handle<Script> script,
647 int position); 639 int position);
648 640
649 // Helper functions used stubs. 641 // Helper functions used stubs.
650 static void PerformGC(Object* result); 642 static void PerformGC(Object* result);
651 }; 643 };
652 644
653 } } // namespace v8::internal 645 } } // namespace v8::internal
654 646
655 #endif // V8_RUNTIME_H_ 647 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/misc-intrinsics.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698