platform/upstream/qtdeclarative.git
12 years agoInitial work on the Function prototype.
Roberto Raggi [Mon, 21 May 2012 12:57:02 +0000 (14:57 +0200)]
Initial work on the Function prototype.

12 years agoImplement Array.prototype.slice
Roberto Raggi [Mon, 21 May 2012 12:27:13 +0000 (14:27 +0200)]
Implement Array.prototype.slice

12 years agoImplement Array.prototype.splice
Roberto Raggi [Mon, 21 May 2012 12:21:57 +0000 (14:21 +0200)]
Implement Array.prototype.splice

12 years agoImplement Array.prototype.sort
Roberto Raggi [Mon, 21 May 2012 12:11:12 +0000 (14:11 +0200)]
Implement Array.prototype.sort

12 years agoMade the ArrayPrototype an ArrayObject.
Roberto Raggi [Mon, 21 May 2012 11:24:03 +0000 (13:24 +0200)]
Made the ArrayPrototype an ArrayObject.

12 years agoRemove debug
Roberto Raggi [Mon, 21 May 2012 11:22:52 +0000 (13:22 +0200)]
Remove debug

12 years agoImprove the Array prototype
Roberto Raggi [Mon, 21 May 2012 11:21:35 +0000 (13:21 +0200)]
Improve the Array prototype

12 years agoFix constructor calls
Roberto Raggi [Mon, 21 May 2012 08:26:13 +0000 (10:26 +0200)]
Fix constructor calls

12 years agoSimple test app for the Array object.
Roberto Raggi [Mon, 21 May 2012 08:10:37 +0000 (10:10 +0200)]
Simple test app for the Array object.

12 years agoFix prototypes and implemented isel for constructValue.
Roberto Raggi [Mon, 21 May 2012 08:09:41 +0000 (10:09 +0200)]
Fix prototypes and implemented isel for constructValue.

12 years agoInitial support for Array objects.
Roberto Raggi [Sun, 20 May 2012 17:59:47 +0000 (19:59 +0200)]
Initial support for Array objects.

12 years agoInitial support for inplace assignments.
Roberto Raggi [Fri, 18 May 2012 20:04:26 +0000 (22:04 +0200)]
Initial support for inplace assignments.

12 years agoImport Array from QtScript classic.
Roberto Raggi [Fri, 18 May 2012 15:37:23 +0000 (17:37 +0200)]
Import Array from QtScript classic.

12 years agoInline common cases.
Roberto Raggi [Fri, 18 May 2012 14:31:57 +0000 (16:31 +0200)]
Inline common cases.

12 years agoImprove [[DefaultValue]]
Roberto Raggi [Fri, 18 May 2012 13:28:59 +0000 (15:28 +0200)]
Improve [[DefaultValue]]

12 years agoImprove the Number prototype.
Roberto Raggi [Fri, 18 May 2012 12:32:11 +0000 (14:32 +0200)]
Improve the Number prototype.

12 years agoImprove the Boolean prototype.
Roberto Raggi [Fri, 18 May 2012 12:27:55 +0000 (14:27 +0200)]
Improve the Boolean prototype.

12 years agoImprove the Number prototype.
Roberto Raggi [Fri, 18 May 2012 12:22:37 +0000 (14:22 +0200)]
Improve the Number prototype.

12 years agoImplemented the ecma Date object.
Roberto Raggi [Fri, 18 May 2012 12:10:02 +0000 (14:10 +0200)]
Implemented the ecma Date object.

12 years agoSome refactoring and some initial work on the Date object.
Roberto Raggi [Fri, 18 May 2012 08:10:36 +0000 (10:10 +0200)]
Some refactoring and some initial work on the Date object.

12 years agoSimplified the compiler.
Roberto Raggi [Wed, 16 May 2012 17:00:31 +0000 (19:00 +0200)]
Simplified the compiler.

12 years agoStore the locals in %r15.
Roberto Raggi [Wed, 16 May 2012 14:31:59 +0000 (16:31 +0200)]
Store the locals in %r15.

12 years agoRefactored the stack frames.
Roberto Raggi [Wed, 16 May 2012 14:19:55 +0000 (16:19 +0200)]
Refactored the stack frames.

The new layout should simplify the use of static context
environments while compiling the code.

12 years agocheckpoint
Roberto Raggi [Wed, 16 May 2012 09:58:07 +0000 (11:58 +0200)]
checkpoint

12 years agoAdd the Boolean Object.
Roberto Raggi [Tue, 15 May 2012 09:19:10 +0000 (11:19 +0200)]
Add the Boolean Object.

12 years agoRemove String::get()
Roberto Raggi [Tue, 15 May 2012 08:58:22 +0000 (10:58 +0200)]
Remove String::get()

12 years agoCleanup function prototypes.
Roberto Raggi [Tue, 15 May 2012 08:53:20 +0000 (10:53 +0200)]
Cleanup function prototypes.

12 years agoAdd methods to allocate JS entities.
Roberto Raggi [Tue, 15 May 2012 08:35:19 +0000 (10:35 +0200)]
Add methods to allocate JS entities.

12 years agoCreate the activation only when needed.
Roberto Raggi [Tue, 15 May 2012 08:02:21 +0000 (10:02 +0200)]
Create the activation only when needed.

12 years agoUse %rbp to index the local variables.
Roberto Raggi [Tue, 15 May 2012 07:05:03 +0000 (09:05 +0200)]
Use %rbp to index the local variables.

12 years agoSkip TEMPs with negative index.
Roberto Raggi [Mon, 14 May 2012 15:58:33 +0000 (17:58 +0200)]
Skip TEMPs with negative index.

That is, TEMP nodes with negative index are a bit special, we
use them to optimize the argument passing.

12 years agoFix the activation.
Roberto Raggi [Mon, 14 May 2012 15:42:47 +0000 (17:42 +0200)]
Fix the activation.

12 years agoInitial implementation of the Math Object.
Roberto Raggi [Mon, 14 May 2012 15:38:53 +0000 (17:38 +0200)]
Initial implementation of the Math Object.

12 years agoIntroduce the ExecutionEngine.
Roberto Raggi [Mon, 14 May 2012 15:12:25 +0000 (17:12 +0200)]
Introduce the ExecutionEngine.

12 years agoFix typo
Roberto Raggi [Mon, 14 May 2012 14:37:28 +0000 (16:37 +0200)]
Fix typo

12 years agoInitial work on the Number object.
Roberto Raggi [Mon, 14 May 2012 14:35:04 +0000 (16:35 +0200)]
Initial work on the Number object.

12 years agoInitial work on the String object.
Roberto Raggi [Mon, 14 May 2012 14:03:10 +0000 (16:03 +0200)]
Initial work on the String object.

12 years agoStore the actual arguments in TEMPs with negative indices.
Roberto Raggi [Mon, 14 May 2012 12:34:36 +0000 (14:34 +0200)]
Store the actual arguments in TEMPs with negative indices.

This should make it possible to optimize function calls.

12 years agoDo a quick scan of the global code.
Roberto Raggi [Mon, 14 May 2012 08:50:13 +0000 (10:50 +0200)]
Do a quick scan of the global code.

12 years agoFix nested functions
Roberto Raggi [Sun, 13 May 2012 11:50:55 +0000 (13:50 +0200)]
Fix nested functions

12 years agoFix constructors and some work on the String prototype.
Roberto Raggi [Thu, 10 May 2012 10:14:20 +0000 (12:14 +0200)]
Fix constructors and some work on the String prototype.

12 years agoAdd the String object constructor.
Roberto Raggi [Thu, 10 May 2012 08:56:02 +0000 (10:56 +0200)]
Add the String object constructor.

12 years agoInitialize baseObject.
Roberto Raggi [Wed, 9 May 2012 15:28:55 +0000 (17:28 +0200)]
Initialize baseObject.

12 years agoFix function calls
Roberto Raggi [Wed, 9 May 2012 15:04:25 +0000 (17:04 +0200)]
Fix function calls

12 years agoAdd callValue.
Roberto Raggi [Wed, 9 May 2012 13:47:55 +0000 (15:47 +0200)]
Add callValue.

12 years agoSet the prototype delegator.
Roberto Raggi [Wed, 9 May 2012 13:06:30 +0000 (15:06 +0200)]
Set the prototype delegator.

12 years agoRename simple2.js
Roberto Raggi [Wed, 9 May 2012 12:34:36 +0000 (14:34 +0200)]
Rename simple2.js

12 years agoInline __qmljs_copy.
Roberto Raggi [Wed, 9 May 2012 12:30:59 +0000 (14:30 +0200)]
Inline __qmljs_copy.

12 years agoFix instruction selections for closures.
Roberto Raggi [Wed, 9 May 2012 11:51:44 +0000 (13:51 +0200)]
Fix instruction selections for closures.

12 years agoSome more progress on function calls
Roberto Raggi [Wed, 9 May 2012 11:30:22 +0000 (13:30 +0200)]
Some more progress on function calls

12 years agoBind the `this' object.
Roberto Raggi [Wed, 9 May 2012 10:00:30 +0000 (12:00 +0200)]
Bind the `this' object.

12 years agoSome progress on closures.
Roberto Raggi [Wed, 9 May 2012 09:28:57 +0000 (11:28 +0200)]
Some progress on closures.

12 years agoInitial support for object literals
Roberto Raggi [Wed, 9 May 2012 09:04:57 +0000 (11:04 +0200)]
Initial support for object literals

12 years agoGenerate inline code instead of calls to __qmljs_to_boolean.
Roberto Raggi [Tue, 8 May 2012 16:43:02 +0000 (18:43 +0200)]
Generate inline code instead of calls to __qmljs_to_boolean.

12 years agoFix typo
Roberto Raggi [Tue, 8 May 2012 15:31:16 +0000 (17:31 +0200)]
Fix typo

12 years agoInline a code for add,sub,mul and div.
Roberto Raggi [Tue, 8 May 2012 14:49:16 +0000 (16:49 +0200)]
Inline a code for add,sub,mul and div.

12 years agoFix nx representation of call expressions.
Roberto Raggi [Tue, 8 May 2012 12:54:05 +0000 (14:54 +0200)]
Fix nx representation of call expressions.

12 years agoOptimized version of simple.js
Roberto Raggi [Tue, 8 May 2012 12:29:01 +0000 (14:29 +0200)]
Optimized version of simple.js

12 years agoOptimize local arguments
Roberto Raggi [Tue, 8 May 2012 12:28:32 +0000 (14:28 +0200)]
Optimize local arguments

12 years agoAdded a simple syntax checker.
Roberto Raggi [Tue, 8 May 2012 11:21:52 +0000 (13:21 +0200)]
Added a simple syntax checker.

12 years agoImprove frame instantiations.
Roberto Raggi [Tue, 8 May 2012 09:13:02 +0000 (11:13 +0200)]
Improve frame instantiations.

12 years agoMake Context a POD value.
Roberto Raggi [Tue, 8 May 2012 08:34:57 +0000 (10:34 +0200)]
Make Context a POD value.

12 years agoInitialize the return address
Roberto Raggi [Tue, 8 May 2012 08:32:33 +0000 (10:32 +0200)]
Initialize the return address

12 years agoRemove the register allocator.
Roberto Raggi [Tue, 8 May 2012 06:58:17 +0000 (08:58 +0200)]
Remove the register allocator.

It needs to be done in a different way

12 years agoTest function calls
Roberto Raggi [Mon, 7 May 2012 15:50:19 +0000 (17:50 +0200)]
Test function calls

12 years agoAdd naive support for function calls.
Roberto Raggi [Mon, 7 May 2012 14:05:05 +0000 (16:05 +0200)]
Add naive support for function calls.

12 years agoFix the examples
Roberto Raggi [Mon, 7 May 2012 12:49:27 +0000 (14:49 +0200)]
Fix the examples

12 years agoMove the instruction selection pass.
Roberto Raggi [Mon, 7 May 2012 12:46:37 +0000 (14:46 +0200)]
Move the instruction selection pass.

12 years agoGenerate code for print calls.
Roberto Raggi [Mon, 7 May 2012 12:14:43 +0000 (14:14 +0200)]
Generate code for print calls.

12 years agoSimplify liveness.
Roberto Raggi [Mon, 7 May 2012 08:45:58 +0000 (10:45 +0200)]
Simplify liveness.

12 years agoCompile
Roberto Raggi [Fri, 4 May 2012 18:22:04 +0000 (20:22 +0200)]
Compile

12 years agoPut the code in namespaces.
Roberto Raggi [Fri, 4 May 2012 13:28:04 +0000 (15:28 +0200)]
Put the code in namespaces.

12 years agoRemove boehm GC
Roberto Raggi [Fri, 4 May 2012 13:12:37 +0000 (15:12 +0200)]
Remove boehm GC

12 years agoMake the simple test more interesting
Roberto Raggi [Fri, 4 May 2012 11:48:57 +0000 (13:48 +0200)]
Make the simple test more interesting

12 years agoGenerate code for unary expressions.
Roberto Raggi [Fri, 4 May 2012 11:43:22 +0000 (13:43 +0200)]
Generate code for unary expressions.

12 years agoAdd tests for the for-statement.
Roberto Raggi [Fri, 4 May 2012 11:13:32 +0000 (13:13 +0200)]
Add tests for the for-statement.

12 years agoAdd copy instructions to the qmljs runtime
Roberto Raggi [Fri, 4 May 2012 11:03:14 +0000 (13:03 +0200)]
Add copy instructions to the qmljs runtime

12 years agoUse assert instead of Q_ASSERT.
Roberto Raggi [Fri, 4 May 2012 10:18:59 +0000 (12:18 +0200)]
Use assert instead of Q_ASSERT.

That is, at least for now we want the asserts also in release.

12 years agoSimplify instruction selections for temporaries
Roberto Raggi [Fri, 4 May 2012 09:01:16 +0000 (11:01 +0200)]
Simplify instruction selections for temporaries

12 years agoFix relational expressions
Roberto Raggi [Fri, 4 May 2012 08:44:28 +0000 (10:44 +0200)]
Fix relational expressions

12 years agoGenerate code for boolean values.
Roberto Raggi [Thu, 3 May 2012 16:06:23 +0000 (18:06 +0200)]
Generate code for boolean values.

12 years agoAdd instruction selection for string values.
Roberto Raggi [Thu, 3 May 2012 15:57:00 +0000 (17:57 +0200)]
Add instruction selection for string values.

12 years agoInitial import
Roberto Raggi [Mon, 16 Apr 2012 19:23:25 +0000 (21:23 +0200)]
Initial import