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

Side by Side Diff: src/extensions/experimental/break-iterator.h

Issue 6794050: Revert "[Arguments] Merge (7442,7496] from bleeding_edge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 years, 8 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/execution.cc ('k') | src/extensions/experimental/break-iterator.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 public: 44 public:
45 static v8::Handle<v8::Value> JSBreakIterator(const v8::Arguments& args); 45 static v8::Handle<v8::Value> JSBreakIterator(const v8::Arguments& args);
46 46
47 // Helper methods for various bindings. 47 // Helper methods for various bindings.
48 48
49 // Unpacks break iterator object from corresponding JavaScript object. 49 // Unpacks break iterator object from corresponding JavaScript object.
50 static icu::BreakIterator* UnpackBreakIterator(v8::Handle<v8::Object> obj); 50 static icu::BreakIterator* UnpackBreakIterator(v8::Handle<v8::Object> obj);
51 51
52 // Deletes the old value and sets the adopted text in 52 // Deletes the old value and sets the adopted text in
53 // corresponding JavaScript object. 53 // corresponding JavaScript object.
54 static icu::UnicodeString* ResetAdoptedText(v8::Handle<v8::Object> obj, 54 static UnicodeString* ResetAdoptedText(v8::Handle<v8::Object> obj,
55 v8::Handle<v8::Value> text_value); 55 v8::Handle<v8::Value> text_value);
56 56
57 // Release memory we allocated for the BreakIterator once the JS object that 57 // Release memory we allocated for the BreakIterator once the JS object that
58 // holds the pointer gets garbage collected. 58 // holds the pointer gets garbage collected.
59 static void DeleteBreakIterator(v8::Persistent<v8::Value> object, 59 static void DeleteBreakIterator(v8::Persistent<v8::Value> object,
60 void* param); 60 void* param);
61 61
62 // Assigns new text to the iterator. 62 // Assigns new text to the iterator.
63 static v8::Handle<v8::Value> BreakIteratorAdoptText( 63 static v8::Handle<v8::Value> BreakIteratorAdoptText(
64 const v8::Arguments& args); 64 const v8::Arguments& args);
65 65
(...skipping 14 matching lines...) Expand all
80 80
81 private: 81 private:
82 BreakIterator() {} 82 BreakIterator() {}
83 83
84 static v8::Persistent<v8::FunctionTemplate> break_iterator_template_; 84 static v8::Persistent<v8::FunctionTemplate> break_iterator_template_;
85 }; 85 };
86 86
87 } } // namespace v8::internal 87 } } // namespace v8::internal
88 88
89 #endif // V8_EXTENSIONS_EXPERIMENTAL_BREAK_ITERATOR_H_ 89 #endif // V8_EXTENSIONS_EXPERIMENTAL_BREAK_ITERATOR_H_
OLDNEW
« no previous file with comments | « src/execution.cc ('k') | src/extensions/experimental/break-iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698