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

Side by Side Diff: src/runtime.cc

Issue 471923002: Purge unused internalized string accessors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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.cc ('k') | src/x64/full-codegen-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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 14454 matching lines...) Expand 10 before | Expand all | Expand 10 after
14465 if (!break_iterator) return isolate->ThrowIllegalOperation(); 14465 if (!break_iterator) return isolate->ThrowIllegalOperation();
14466 14466
14467 // TODO(cira): Remove cast once ICU fixes base BreakIterator class. 14467 // TODO(cira): Remove cast once ICU fixes base BreakIterator class.
14468 icu::RuleBasedBreakIterator* rule_based_iterator = 14468 icu::RuleBasedBreakIterator* rule_based_iterator =
14469 static_cast<icu::RuleBasedBreakIterator*>(break_iterator); 14469 static_cast<icu::RuleBasedBreakIterator*>(break_iterator);
14470 int32_t status = rule_based_iterator->getRuleStatus(); 14470 int32_t status = rule_based_iterator->getRuleStatus();
14471 // Keep return values in sync with JavaScript BreakType enum. 14471 // Keep return values in sync with JavaScript BreakType enum.
14472 if (status >= UBRK_WORD_NONE && status < UBRK_WORD_NONE_LIMIT) { 14472 if (status >= UBRK_WORD_NONE && status < UBRK_WORD_NONE_LIMIT) {
14473 return *isolate->factory()->NewStringFromStaticAscii("none"); 14473 return *isolate->factory()->NewStringFromStaticAscii("none");
14474 } else if (status >= UBRK_WORD_NUMBER && status < UBRK_WORD_NUMBER_LIMIT) { 14474 } else if (status >= UBRK_WORD_NUMBER && status < UBRK_WORD_NUMBER_LIMIT) {
14475 return *isolate->factory()->NewStringFromStaticAscii("number"); 14475 return *isolate->factory()->number_string();
14476 } else if (status >= UBRK_WORD_LETTER && status < UBRK_WORD_LETTER_LIMIT) { 14476 } else if (status >= UBRK_WORD_LETTER && status < UBRK_WORD_LETTER_LIMIT) {
14477 return *isolate->factory()->NewStringFromStaticAscii("letter"); 14477 return *isolate->factory()->NewStringFromStaticAscii("letter");
14478 } else if (status >= UBRK_WORD_KANA && status < UBRK_WORD_KANA_LIMIT) { 14478 } else if (status >= UBRK_WORD_KANA && status < UBRK_WORD_KANA_LIMIT) {
14479 return *isolate->factory()->NewStringFromStaticAscii("kana"); 14479 return *isolate->factory()->NewStringFromStaticAscii("kana");
14480 } else if (status >= UBRK_WORD_IDEO && status < UBRK_WORD_IDEO_LIMIT) { 14480 } else if (status >= UBRK_WORD_IDEO && status < UBRK_WORD_IDEO_LIMIT) {
14481 return *isolate->factory()->NewStringFromStaticAscii("ideo"); 14481 return *isolate->factory()->NewStringFromStaticAscii("ideo");
14482 } else { 14482 } else {
14483 return *isolate->factory()->NewStringFromStaticAscii("unknown"); 14483 return *isolate->factory()->NewStringFromStaticAscii("unknown");
14484 } 14484 }
14485 } 14485 }
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
15630 } 15630 }
15631 return NULL; 15631 return NULL;
15632 } 15632 }
15633 15633
15634 15634
15635 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15635 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15636 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15636 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15637 } 15637 }
15638 15638
15639 } } // namespace v8::internal 15639 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698