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

Unified Diff: src/extensions/i18n/date-format.h

Issue 148503002: A64: Synchronize with r15545. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/extensions/i18n/collator.js ('k') | src/extensions/i18n/date-format.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/extensions/i18n/date-format.h
diff --git a/src/a64/debugger-a64.h b/src/extensions/i18n/date-format.h
similarity index 58%
copy from src/a64/debugger-a64.h
copy to src/extensions/i18n/date-format.h
index 50480cc268a49f53fafc1650e79d73de573524ed..daa5964e254519faa7a8eef7d7a5d375562bc0ed 100644
--- a/src/a64/debugger-a64.h
+++ b/src/extensions/i18n/date-format.h
@@ -24,33 +24,48 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// limitations under the License.
-#ifndef V8_A64_DEBUGGER_A64_H_
-#define V8_A64_DEBUGGER_A64_H_
+#ifndef V8_EXTENSIONS_I18N_DATE_FORMAT_H_
+#define V8_EXTENSIONS_I18N_DATE_FORMAT_H_
-#if defined(USE_SIMULATOR)
+#include "unicode/uversion.h"
+#include "v8.h"
-#include "globals.h"
-#include "utils.h"
-#include "a64/constants-a64.h"
-#include "a64/simulator-a64.h"
+namespace U_ICU_NAMESPACE {
+class SimpleDateFormat;
+}
-namespace v8 {
-namespace internal {
+namespace v8_i18n {
-
-class Debugger : public Simulator {
+class DateFormat {
public:
- Debugger(Decoder* decoder, FILE* stream = stdout)
- : Simulator(decoder, NULL, stream) {}
+ static void JSCreateDateTimeFormat(
+ const v8::FunctionCallbackInfo<v8::Value>& args);
- // Functions overloading.
- void VisitException(Instruction* instr);
-};
+ // Helper methods for various bindings.
+
+ // Unpacks date format object from corresponding JavaScript object.
+ static icu::SimpleDateFormat* UnpackDateFormat(
+ v8::Handle<v8::Object> obj);
+ // Release memory we allocated for the DateFormat once the JS object that
+ // holds the pointer gets garbage collected.
+ static void DeleteDateFormat(v8::Isolate* isolate,
+ v8::Persistent<v8::Object>* object,
+ void* param);
-} } // namespace v8::internal
+ // Formats date and returns corresponding string.
+ static void JSInternalFormat(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ // Parses date and returns corresponding Date object or undefined if parse
+ // failed.
+ static void JSInternalParse(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ private:
+ DateFormat();
+};
-#endif // USE_SIMULATOR
+} // namespace v8_i18n
-#endif // V8_A64_DEBUGGER_A64_H_
+#endif // V8_EXTENSIONS_I18N_DATE_FORMAT_H_
« no previous file with comments | « src/extensions/i18n/collator.js ('k') | src/extensions/i18n/date-format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698