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/runtime.h

Issue 11727003: Reland r13275 and 13276 (Remove most uses of StringInputBuffer). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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/objects-inl.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 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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 F(RegExpConstructResult, 3, 1) \ 568 F(RegExpConstructResult, 3, 1) \
569 F(GetFromCache, 2, 1) \ 569 F(GetFromCache, 2, 1) \
570 F(NumberToString, 1, 1) 570 F(NumberToString, 1, 1)
571 571
572 572
573 //--------------------------------------------------------------------------- 573 //---------------------------------------------------------------------------
574 // Runtime provides access to all C++ runtime functions. 574 // Runtime provides access to all C++ runtime functions.
575 575
576 class RuntimeState { 576 class RuntimeState {
577 public: 577 public:
578 StaticResource<StringInputBuffer>* string_input_buffer() { 578 StaticResource<ConsStringIteratorOp>* string_iterator() {
579 return &string_input_buffer_; 579 return &string_iterator_;
580 } 580 }
581 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { 581 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() {
582 return &to_upper_mapping_; 582 return &to_upper_mapping_;
583 } 583 }
584 unibrow::Mapping<unibrow::ToLowercase, 128>* to_lower_mapping() { 584 unibrow::Mapping<unibrow::ToLowercase, 128>* to_lower_mapping() {
585 return &to_lower_mapping_; 585 return &to_lower_mapping_;
586 } 586 }
587 StringInputBuffer* string_input_buffer_compare_bufx() { 587 ConsStringIteratorOp* string_iterator_compare_x() {
588 return &string_input_buffer_compare_bufx_; 588 return &string_iterator_compare_x_;
589 } 589 }
590 StringInputBuffer* string_input_buffer_compare_bufy() { 590 ConsStringIteratorOp* string_iterator_compare_y() {
591 return &string_input_buffer_compare_bufy_; 591 return &string_iterator_compare_y_;
592 } 592 }
593 StringInputBuffer* string_locale_compare_buf1() { 593 ConsStringIteratorOp* string_locale_compare_it1() {
594 return &string_locale_compare_buf1_; 594 return &string_locale_compare_it1_;
595 } 595 }
596 StringInputBuffer* string_locale_compare_buf2() { 596 ConsStringIteratorOp* string_locale_compare_it2() {
597 return &string_locale_compare_buf2_; 597 return &string_locale_compare_it2_;
598 } 598 }
599 599
600 private: 600 private:
601 RuntimeState() {} 601 RuntimeState() {}
602 // Non-reentrant string buffer for efficient general use in the runtime. 602 // Non-reentrant string buffer for efficient general use in the runtime.
603 StaticResource<StringInputBuffer> string_input_buffer_; 603 StaticResource<ConsStringIteratorOp> string_iterator_;
604 unibrow::Mapping<unibrow::ToUppercase, 128> to_upper_mapping_; 604 unibrow::Mapping<unibrow::ToUppercase, 128> to_upper_mapping_;
605 unibrow::Mapping<unibrow::ToLowercase, 128> to_lower_mapping_; 605 unibrow::Mapping<unibrow::ToLowercase, 128> to_lower_mapping_;
606 StringInputBuffer string_input_buffer_compare_bufx_; 606 ConsStringIteratorOp string_iterator_compare_x_;
607 StringInputBuffer string_input_buffer_compare_bufy_; 607 ConsStringIteratorOp string_iterator_compare_y_;
608 StringInputBuffer string_locale_compare_buf1_; 608 ConsStringIteratorOp string_locale_compare_it1_;
609 StringInputBuffer string_locale_compare_buf2_; 609 ConsStringIteratorOp string_locale_compare_it2_;
610 610
611 friend class Isolate; 611 friend class Isolate;
612 friend class Runtime; 612 friend class Runtime;
613 613
614 DISALLOW_COPY_AND_ASSIGN(RuntimeState); 614 DISALLOW_COPY_AND_ASSIGN(RuntimeState);
615 }; 615 };
616 616
617 617
618 class Runtime : public AllStatic { 618 class Runtime : public AllStatic {
619 public: 619 public:
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 //--------------------------------------------------------------------------- 722 //---------------------------------------------------------------------------
723 // Constants used by interface to runtime functions. 723 // Constants used by interface to runtime functions.
724 724
725 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 725 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
726 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 726 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
727 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; 727 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {};
728 728
729 } } // namespace v8::internal 729 } } // namespace v8::internal
730 730
731 #endif // V8_RUNTIME_H_ 731 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698